Closed klassare closed 4 months ago
Hi @klassare,
The issue was caused by our cleanup logic.
Because of refreshState
some uncleared subscriptions were triggered again upon receiving an event.
Hi @klassare, the cleanup should now be correctly handled. You can see the changes in #764
The fix has been included in v4.2.2
Describe the bug (current behavior) Duplicate (or more) event listeners are set up when a dapp is opened in more than one tab. Resulting in ACTIVE_ACCOUNT_SET being emitted multiple times.
To Reproduce Steps to reproduce the behavior:
Expected (correct) behavior ACTIVE_ACCOUNT_SET should only be emitted once
Additional context Subscriptions can be set up twice in refreshState(). Directly and indirectly via getSignClient()