You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not hardcoded any more, but discovered using feature detection with walletApi.experimental.on(...). However, it's a shame that most wallet providers does not implement this. I am planning to add a CIP for this.
GGAlanSmithee
changed the title
better detection for account and network change event support
detect account change in wallets that does not expose events (all non-nami wallets)
Dec 30, 2022
We could implement this now, with some long polling kind of thing, ie.
If the wallet does not support events for changing account or network, we could emulate this with a setTimeout that periodically checks if the account or network has been changed. I am not super excited by this for two reasons; 1. the UX won't be great, and 2. it's just a waste from a resource / performance point of view. I really like how use-cardano works now with regards to not doing anything when you're not interacting with your wallet or the blockchain.
I might give this a try, just to see how it plays out, as an intermediare solution until (and if) I can get a CIP to pass.
Right now it's hardcoded to nami, but we should probably use some feature detection instead
The text was updated successfully, but these errors were encountered: