Open SerhiiKirik opened 1 month ago
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 https://linear.app/reown/issue/APKT-1045/[bug]-disconnect-is-not-expose
meanwhile you can use
modal.adapter?.connectionControllerClient?.disconnect()
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!