useActiveWalletConnectionStatus

A hook that returns the active account's connection status.

Example

import { useActiveWalletConnectionStatus } from "thirdweb/react";
function Example() {
const status = useActiveWalletConnectionStatus();
console.log(status);
return <div> ... </div>;
}
function useActiveWalletConnectionStatus(): ConnectionStatus;

Returns

let returnType: "connected" | "disconnected" | "connecting";

The active wallet's connection status.