[bug] need to handle refresh the balance when any transaction is completed
Is there an existing issue for this?
- [x] I have searched the existing issues
RainbowKit Version
0.8.0
wagmi Version
0.11.4
Current Behavior
i have added ConnectButton in Navbar using react app, navbar render only once when app is started, what happen whenever i'm doing any transaction using MetaMask balance is not updating inside ConnectButton component
Expected Behavior
you have to re-render that component whenever any changes happen in MetaMask wallet
Steps To Reproduce
No response
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response
I could work on that, any tips where to start?
You need re-render the ConnectButton component whenever any transaction happen; you can create method like connect, disconnect which is provided by wagmi; created method name should refreshBalance in may case ConnectButton is Child component
Opened #1415 to implement this behavior with Wagmi's balance polling behavior. Feel free to test it out here