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

Bug🐛: multiple useChain() instances in a single React Component/Page renders only one #114

Open
kombos opened this issue Feb 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kombos
Copy link
Member

kombos commented Feb 14, 2023

Describe the bug.

The test conditions have been reproduced in the branch: testBranch1

There are two useChain() implementation described in the js file: views->MntlToGravityBridge.js, with console.log set here

the bug is, on executing the app, only one of the useChain instances renders properly (first one), while the other still shows 'undefined/disconnected'

Describe the steps to reproduce the behavior

  1. Run the App
  2. go to the 'bridge' main menu item, to go to the bridge page, which as 4 subsections: assetmantle, gravity, ethereum and polygon
  3. if you are already connected, disconnect the wallet using the button at the top right in the navbar
  4. connect wallet again using button at the top right of navbar
  5. Go to the browser console and check the value of the console log statement mentioned previously in bug description
  6. The log only shows the wallet data for Assetmantle populated, while that of gravity is "undefined", "disconnected".

Expected behavior.

in the console log, the wallet data for both AssetMantle and Gravity chain should be populated

Screenshots.

image

Operating environment

macOS Ventura

Additional context

No response

@kombos kombos added the bug Something isn't working label Feb 14, 2023
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