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

Closing the modal prior to connecting causes an infinite loading state #89

Open
sumicet opened this issue Jul 14, 2023 · 3 comments
Open

Comments

@sumicet
Copy link

sumicet commented Jul 14, 2023

Steps to reproduce:

  • Click connect
  • Close the web3auth modal immediately, before connecting to any provider
  • Notice how wagmi's loading state is still set to true

https://codesandbox.io/p/github/sumicet/web3auth-bugs/infinite-loading-state?file=/src/App.tsx:7,1

Expected behavior: If the user closes the modal before connecting to a provider, the loading state should revert to false.

@web3auth/modal: 6.1.3
@web3auth/web3auth-wagmi-connector: 4.0.1
@eruizgar91
Copy link

Yes, I got the same issue. Not sure if there is anyone taking look of this

@antoinefarley
Copy link

I have the same issue and created a discussion in Web3Auth's community.

@guillermoriv
Copy link

Hey @antoinefarley I have the same issue, I saw you posted on the community, could you please share your whole logic?, where are you getting from the accountResult and also LOGIN_MODAL_EVENTS, that would also help me out in my problem, thanks!

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

4 participants