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

Unhandled Runtime Error when switching chains #135

Closed
slavanga opened this issue Aug 11, 2022 · 1 comment
Closed

Unhandled Runtime Error when switching chains #135

slavanga opened this issue Aug 11, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@slavanga
Copy link

slavanga commented Aug 11, 2022

Bug Description
Switching chains does not work when passing a provider and produces the following error:

Unhandled Runtime Error
Error: The connectors prop passed to Web3ReactProvider must be referentially static. If connectors is changing, try providing a key prop to Web3ReactProvider that changes every time connectors changes.

Steps to Reproduce

  1. Load the Uniswap widget in a React / Next.js app
  2. Pass a provider prop to SwapWidget
  3. Switch the chain in your wallet (e.g. from Goerli testnet to Ethereum mainnet or vice versa)

Additional Context

  • Using a Next.js app and @uniswap/widgets v2.0.0
  • Switching chains worked in v1.1.1
@slavanga slavanga added the bug Something isn't working label Aug 11, 2022
@slavanga
Copy link
Author

Closing because this issue is gone with version v2.1.1

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

1 participant