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

MM disconnection on page reload #1057

Open
agualis opened this issue Sep 5, 2024 · 0 comments
Open

MM disconnection on page reload #1057

agualis opened this issue Sep 5, 2024 · 0 comments

Comments

@agualis
Copy link
Contributor

agualis commented Sep 5, 2024

AKA Cannot read properties of undefined (reading 'listenerCount')

Sometimes the Metamask connection is disconnected when reloading certain pages.

This is probably a Metamask related bug but it is quite frequent:
https://balancer-labs.sentry.io/issues/5735188657/

Steps to reproduce:

  1. Go to balancer.fi or to a preview url
  • it does not happen in dev or when locally building and serving a build so it could be SSR related
  1. Connect with MM
  2. Go to swap page
  3. Manually change url params (for instance from /swap/ethereum to /swap/base/USDC) and refresh the page
  4. Repeat 3 until you get the disconnection
  5. you should see a Cannot read properties of undefined (reading 'listenerCount') error in the console

Note: It is not a problem in the swap page as I could also reproduce it by reloading the pool detail page with different pool ids

MetamaskDisconnection.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant