-
Notifications
You must be signed in to change notification settings - Fork 52
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
Disconnect is not expose in Modal for Vanilla JS #60
Comments
Additional Comment: I found the ConnectionController which contains a disconnect method. Therefore, we can do something like this: await ConnectionController.disconnect(); Would this be the correct approach? Or is there a better way to handle the disconnect? Also, the documentation lacks methods for tracking connection status, loading states, and the account. It would be helpful to add these. |
Error already know an reported . thanks |
meanwhile you can use |
Thanks for the suggestion, @rtomas.Here’s my current setup, maybe it will be useful to someone:
In a Svelte project, I can easily pass config around via context or a store, making it straightforward to trigger wagmiDisconnect from anywhere. However, I acknowledge that in a vanilla JS environment (or with frameworks that lack a context system), this approach might be less convenient. |
Describe the bug
There seems to be an error in the documentation in the Actions section for JavaScript (wagmi).
Link: DOC
Specifically in the Disconnect section:
The issue is that modal does not have a disconnect method. Previously, disconnect was implemented using wagmi as follows:
I might be mistaken, and I would be happy to hear your response.
Thank you!
The text was updated successfully, but these errors were encountered: