Closed stoXmod closed 3 months ago
I would love to hear, if is there currently any workaround for this. 🤔
hi @stoXmod, thanks for the suggestion!
I can confirm this is in our roadmap and will be included very soon 👀
duplicate of: https://github.com/secretkeylabs/sats-connect/issues/54
Description
In the Unisat wallet, we can listen for account and network changes using the following event listeners:
This feature is crucial for maintaining the app's responsiveness to changes in the user's wallet settings, such as switching accounts or networks, which is common in blockchain applications.
Solution
I suggest adding support for event listeners in the Xverse wallet that can handle 'accountsChanged' and 'networkChanged' events. This would make the wallet more versatile and user-friendly, particularly for applications that need to react in real-time to changes in the user's wallet configuration.
Ideally, the implementation would allow developers to use event listeners similar to those in Unisat.
Benefits: