-
Notifications
You must be signed in to change notification settings - Fork 79
Description
Describe the bug
When using Rabby Wallet or MetaMask in a ReactJS/NextJS application that implements RainbowKit for wallet connections, the wallets disconnect unexpectedly during usage or upon a page refresh. Once disconnected, attempting to reconnect presents multiple wallet options (e.g., MetaMask, Rabby, and others). However, neither Rabby Wallet nor MetaMask can be reconnected directly; instead, I must select a different wallet before being able to reconnect. This results in an alternating pattern where I am forced to switch between wallets after each disconnection. The issue is ultimately caused by Rivet Wallet, as it interferes with the connection stability of both Rabby Wallet and MetaMask.
To Reproduce
Steps to reproduce the behavior:
- Open a ReactJS/NextJS application that uses RainbowKit for wallet connections.
- Connect to Rabby Wallet or MetaMask.
- Use the application for some time or refresh the page.
- Notice that the wallet disconnects unexpectedly.
- Attempt to reconnect using Rabby Wallet or MetaMask.
- Observe that multiple wallet options appear, and the disconnected wallet cannot be reconnected directly.
- Select another wallet (e.g., switching between Rabby and MetaMask) to connect successfully.
- Disconnect again and try reconnecting, which requires selecting a different wallet first.
Expected behavior
Rabby Wallet and MetaMask should maintain a stable connection during usage and page refreshes. If disconnected, they should allow direct reconnection without requiring the user to switch to a different wallet first.
Additional context
- The problem was initially believed to be related to Rabby Wallet but was ultimately traced back to Rivet Wallet, which is causing the disconnection issue.
- Related GitHub issues:
- Relevant library versions:
@rainbow-me/rainbowkit
: 2.2.4react
: 18.3.1react-dom
: 18.3.1wagmi
: 2.13.2viem
: 2.21.60
- Rivet Wallet version: 0.0.13