web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

After clearCachedProvider, the subscription for the events are still triggered

Open ochikov opened this issue 4 years ago • 2 comments

I am clearing cache provider with clearCachedProvider() function, but after that, if there is an account change, the event is triggered. How to disconnect/unsubscribe programmatically ?

ochikov avatar Jan 13 '21 14:01 ochikov

+1

Tinh96nb avatar Jun 11 '21 09:06 Tinh96nb

+1 there should be an "unsubscribe all events" function

zfogg avatar Dec 29 '21 21:12 zfogg

With stable version 2.0.0 of Web3Modal now released, we are officially dropping support for version 1.x Due to this this issue/pr was marked for closing. It is highly recommended to upgrade as 2.x will be receiving further updates that will enable functionality for some of our newer sdks like auth and push as well as support for WalletConnect v2 (See this post about WalletConnect v1 being deprecated https://medium.com/walletconnect/walletconnect-v1-0-sunset-notice-and-migration-schedule-8af9d3720d2e)

If you need to continue using Web3Modal 1.x and require this feature/fix implemented, we suggest adding it via forking V1 branch.

xzilja avatar Jan 21 '23 14:01 xzilja