diff --git a/docs/appkit/next/core/hooks.mdx b/docs/appkit/next/core/hooks.mdx index 5c56b7e5..093a9b34 100644 --- a/docs/appkit/next/core/hooks.mdx +++ b/docs/appkit/next/core/hooks.mdx @@ -150,6 +150,23 @@ export default Component(){ } ``` +## useAppKitAccount + +Hook for accessing account data and connection status. + +List of possible status: "reconnecting" | "connected" | "disconnected" | "connecting" | undefined + +```ts +import { useAppKitAccount } from "@reown/appkit/react"; + + +export default Component(){ + const { address, isConnected, status } = useAppKitAccount() + + //... +} +``` + ## Ethereum Library diff --git a/docs/appkit/react/core/hooks.mdx b/docs/appkit/react/core/hooks.mdx index a55fe592..2c88d352 100644 --- a/docs/appkit/react/core/hooks.mdx +++ b/docs/appkit/react/core/hooks.mdx @@ -152,6 +152,24 @@ export default Component(){ } ``` + +## useAppKitAccount + +Hook for accessing account data and connection status. + +List of possible status: "reconnecting" | "connected" | "disconnected" | "connecting" | undefined + +```ts +import { useAppKitAccount } from "@reown/appkit/react"; + + +export default Component(){ + const { address, isConnected, status } = useAppKitAccount() + + //... +} +``` + ## Ethereum Library diff --git a/docs/appkit/react/wagmi/hooks.mdx b/docs/appkit/react/wagmi/hooks.mdx index d4238027..0889930d 100644 --- a/docs/appkit/react/wagmi/hooks.mdx +++ b/docs/appkit/react/wagmi/hooks.mdx @@ -2,22 +2,6 @@ import Button from '../../../components/button' You can use [Wagmi hooks](https://wagmi.sh/react/hooks/useAccount) to sign messages, interact with smart contracts, and much more. -### useAccount - -Hook for accessing account data and connection status. - -```tsx -import { useAccount } from 'wagmi' - -function App() { - const { address, isConnecting, isDisconnected } = useAccount() - - if (isConnecting) return
Connecting…
- if (isDisconnected) return
Disconnected
- return
{address}
-} -``` - ### useSignMessage Hook for signing messages with connected account.