React Hooks Reference
disconnect

disconnect

Disconnects the signer connected to the SafeProvider.

Usage


_13
import { useSafe } from '@safe-global/safe-react-hooks'
_13
_13
function Disconnect() {
_13
const { disconnect } = useSafe()
_13
_13
return (
_13
<button onClick={disconnect}>
_13
Disconnect
_13
</button>
_13
)
_13
}
_13
_13
export default Disconnect

Was this page helpful?