Proper ALGO Wallet Disconnect Pattern? #1364
Unanswered
devspacenine
asked this question in
Q&A
Replies: 1 comment
-
I don't understand what the main problem you're experiencing is. First, I don't know what Second, you definitely want to delete Third, calling Fourth, disconnecting is just calling a function on the underlying thing, so if it isn't implemented right then you'll have a problem. I once had a problem where my PeraWallet app on my phone hadn't updated and I got really weird behavior. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I have an issue with ALGO wallet connections and disconnections that I'm having a real hard time figuring out. I can't seem to properly disconnect from a wallet with MyAlgoWallet and WalletConnect sessions.
This is a react hook that I'm using to facilitate wallet connections/disconnections.
Initiating the first QR prompt to connect a wallet is working as expected, but for the life of me I cannot figure out how to properly disconnect from MyAlgoWallet and WalletConnect sessions. I would like for the QR prompt to come up again when someone tries to reconnect after disconnecting. Instead, calling the connect methods again just automatically connects to the previously used wallet address. Unless I refresh the page. For some reason with this code, the
window.algorand
object is not what I expect it to be. It does not include thedisconnect()
method anddelete window.algorand
does not do anything. I suspect my issue has something to do with the useRef pattern I'm using.Beta Was this translation helpful? Give feedback.
All reactions