Reports the session and lock state from the wallet's own pushes. A wallet that disconnected on its own pushed the same thing as a lock, so isLocked cannot tell them apart.
isLocked
with no CantonConnectProvider above it.
const { isConnected, isLocked } = useWalletStatus()if (!isConnected) return <p>No session.</p>return isLocked ? <p>Unlock your wallet to continue.</p> : <p>Ready.</p> Copy
const { isConnected, isLocked } = useWalletStatus()if (!isConnected) return <p>No session.</p>return isLocked ? <p>Unlock your wallet to continue.</p> : <p>Ready.</p>
Reports the session and lock state from the wallet's own pushes. A wallet that disconnected on its own pushed the same thing as a lock, so
isLockedcannot tell them apart.