React Hooks Reference
isOwnerConnected

isOwnerConnected

Checks if the signer connected to the SafeProvider is an owner of the connected Safe.

Use the isSignerConnected function instead to avoid checking ownership.

Usage


_13
import { useSafe } from '@safe-global/safe-react-hooks'
_13
_13
function IsOwnerConnected() {
_13
const { isOwnerConnected } = useSafe()
_13
_13
return (
_13
<>
_13
{isOwnerConnected ? 'Owner is connected' : 'No owner connected'}
_13
</>
_13
)
_13
}
_13
_13
export default IsOwnerConnected

Returns

boolean

The boolean value that indicates if an owner of the Safe is connected as a signer.

Was this page helpful?