reown-com / appkit

The full stack toolkit to build onchain app UX
https://reown.com/appkit
Apache License 2.0
4.94k stars 1.41k forks source link

[docs] useDisconect() has no example for vue in Vue section #2873

Open ultraKelevra opened 2 months ago

ultraKelevra commented 2 months ago

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

DobromirKirovLime commented 1 month ago

Totally agree, imagine the installation of the whole wagmi just for that hook... no ethers example as well...