React Hooks Reference
isInitialized

isInitialized

Checks if the SafeProvider is initialized and ready to use.

This function must be called before interacting with the Safe.

Usage


_13
import { useSafe } from '@safe-global/safe-react-hooks'
_13
_13
function IsInitialized() {
_13
const { isInitialized } = useSafe()
_13
_13
return (
_13
<>
_13
{isInitialized ? 'Is initialized' : 'Not initialized'}
_13
</>
_13
)
_13
}
_13
_13
export default IsInitialized

Returns

boolean

The boolean value that indicates if the SafeProvider is initialized and ready to use.

Was this page helpful?