Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow excessive hydration to fix hanging
isReconnecting
state
As far as I've understood, the `const active = useRef(true)` was there to really make sure the effect is run just once as React doesn't guarantee that an effect won't be re-run once again, and for the same reason the dependencies were empty to minimize the redundant effect calls. However, I think the effect still has to be run as during hot-reload component might get remounted with all connectors hanging in `isReconnecting: true` state. Using this as a workaround for now. Might fix wevm#3490, yet also prune to excessive re-connects that might cause UI regressions, idk.
- Loading branch information