useMounted

@justaname.id/reactDocs


@justaname.id/react / useMounted

Function: useMounted()

useMounted(): boolean

A custom React hook to determine if a component has been mounted.

Returns

boolean

A boolean flag indicating whether the component is currently mounted.

Defined in

packages/@justaname.id/react/src/lib/hooks/account/useMounted.ts:10

Last updated