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 #61

Open
agualis opened this issue Sep 5, 2024 · 1 comment
Open

MM disconnection on page reload #61

agualis opened this issue Sep 5, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@agualis
Copy link
Collaborator

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
@garethfuller
Copy link
Contributor

@agualis Is this still an issue? Closing for now, reopen if still issue.

@garethfuller garethfuller transferred this issue from balancer/frontend-v3 Oct 15, 2024
@garethfuller garethfuller reopened this Oct 15, 2024
@garethfuller garethfuller added the bug Something isn't working label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants