starknet-react icon indicating copy to clipboard operation
starknet-react copied to clipboard

`autoconnect` reconnects to the wrong wallet after refresh when connecting to multiple wallets

Open YohanTz opened this issue 3 years ago • 2 comments

I tried connecting to Argent X, then disconnect from it and then connect to Braavos. After I hit refresh, I was connected to my Argent X wallet, while I was expecting to be connected to my Braavos wallet

YohanTz avatar Sep 22 '22 20:09 YohanTz

This is because the library is stateless, so it cannot track the last connected wallet.

We should add an option to use local storage to track of this.

fracek avatar Sep 22 '22 20:09 fracek

Ok I see ! I can work on it if needed 👍🏽 You can give me some pointers on how you want it to be implemented if you want 😄

YohanTz avatar Sep 22 '22 22:09 YohanTz

Fixed in #186

fracek avatar Oct 18 '22 19:10 fracek