Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Coinbase-Wallet-SDK connector does not reconnect from local storage on page reload. #3824

Open
snake-poison opened this issue Feb 8, 2025 · 1 comment
Labels
bug Something isn't working needs review

Comments

@snake-poison
Copy link

snake-poison commented Feb 8, 2025

Link to minimal reproducible example

[Reproduction Repo] (https://github.com/snake-poison/3824-CBW-SDK-Reconnecct)
Here is the reproduction deployed: https://lucky-starship-4e0e21.netlify.app/

To observe the behavior described,
pnpm install ; pnpm dev
navigate to the running instance:
connect with CBW and then reload the page. The account stays disconnected.
Contrast this with using an email provider and then reload, the expected behaviour occurs and you are still connected.

Summary

I have nuxt, vite, wagmi and appkit integration that had a bug introduced after updating to 1.6.6.

the issue: Attempting to connect without a previous connection works as you'd expect, but once connected, reloading the appkit-button does not automatically reconnect and you must select the wallet again (at which point it recognizes a previous connection exists).

The bug only manifests with the coinbase-wallet-sdk connector and seems like it is related to the changes made in #3752. Will work on a reproduction but as this was a recent break, I wanted to bring it up as soon as possible for users that may not have tested this in their own projects yet that may also be affeceted.

List of related npm package versions

"@reown/appkit": "^1.6.7",
"@reown/appkit-adapter-wagmi": "^1.6.7",
"@tanstack/vue-query": "^5.66.0",
"@wagmi/vue": "^0.1.10",
"nuxt": "^3.15.4",
"viem": "^2.22.23",
"vue": "latest"

Node.js Version

20

Package Manager

pnpm@10

@snake-poison snake-poison added bug Something isn't working needs review labels Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

No branches or pull requests

1 participant