useEffect(() => {
if (suiWalletObj?.connected) {
suiWalletObj.on('accountChange', () => {
suiQueryState()
})
suiWalletObj.on('chainChange', () => {
suiQueryState()
})
}
}, [suiQueryState, suiWalletObj])
I switched wallet addresses in the plugin wallet, and it seems that it won't trigger the "accountant change" operation, while switching environments will trigger the "chain change" operation
This event is invalid.”accountChange“
Hey, this accountChange feature depends on the implementation of the extension wallets (aka plugin wallet). Could you please tell me which wallet are you testing with?
useEffect(() => { if (suiWalletObj?.connected) { suiWalletObj.on('accountChange', () => { suiQueryState() }) suiWalletObj.on('chainChange', () => { suiQueryState() }) } }, [suiQueryState, suiWalletObj]) I switched wallet addresses in the plugin wallet, and it seems that it won't trigger the "accountant change" operation, while switching environments will trigger the "chain change" operation This event is invalid.”accountChange“