[docs] useDisconect() has no example for vue in Vue section
Summary
// import useDisconnect from wagmi if on EVM
//import useDisconnect from @reown/appkit-solana/vue if on Solana
const { disconnect } = useDisconnect()
disconnect()
Only examples for wagmi and appkit-solana are provided. Do I have to install wagmi if I want to use vue with eth anyways?
I don't have it clear.
I also tried to find a similar "useDisconnect" function in the "@reown/appkit/vue" package (in all packages actually) but found none so I assume there is no function for that in the new version. In any case, I come from the old wallet connect V3 and some sort of clarification should be put in this section of the documentation. Because my first thought was that it's a "missing feature" and not a documentation problem.
Link to the related docs page
https://docs.reown.com/appkit/vue/core/composables#usedisconnect
Totally agree, imagine the installation of the whole wagmi just for that hook... no ethers example as well...
This is fixed in the latest release. You should be able to get useDisconnect hook from @reown/appkit/vue like this.
import { useDisconnect } from '@reown/appkit/vue'
const { disconnect } = useDisconnect()
await disconnect()