-
Notifications
You must be signed in to change notification settings - Fork 686
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] The dApp fails to load when both Phantom and Coinbase Wallet are enabled. #2247
Comments
Same we are experiencing this |
I'm also confirming this is happening |
I followed the trail of the crash down into the internals of Wagmi, this The wagmi code wrapping that call does retry, but it does not time out if an individual call hangs, and so it hangs the whole tab which eventually becomes unresponsive, and I think it’s related to this code being run in the onMount logic of the wagmi provider component, although I’m not sure of that. But commenting out the A further lead wrt the connection to Rainbowkit: The crash only happens if the config passed into the WagmiProvider comes from Rainbowkit’s getDefaultConfig function. If I use Wagmi’s own createConfig function, the crash does not happen. |
We have a sample app for reproducing this: Steps:
While the underlying issue seems to be the infinite event loop between wagmi and the Coinbase extension, it seems to be triggered by using Rainbowkit's injectedWallet. |
Is there an existing issue for this?
RainbowKit Version
2.1.7
wagmi Version
2.12.29
Current Behavior
When I visit my dApp with both Phantom and Coinbase Wallet enabled, the application displays only a white screen and doesn’t load. However, when either wallet is disabled, the dApp functions perfectly.
Expected Behavior
The dApp loads successfully when both Phantom and Coinbase Wallet are enabled.
Steps To Reproduce
In the CodeSandbox
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
https://codesandbox.io/p/sandbox/lingering-mountain-83h7z2
Anything else?
No response
The text was updated successfully, but these errors were encountered: