Skip to main content

Type Alias: UseMountedOptions

UseMountedOptions = object

Defined in: use-mounted.ts:8

Configuration options for the useMounted hook.

Properties​

onMount?​

optional onMount?: () => void | (() => void)

Defined in: use-mounted.ts:13

Callback function that is invoked when the component mounts. Optionally returns a cleanup function that will be called before unmount.

Returns​

void | (() => void)


onUnmount?​

optional onUnmount?: () => void

Defined in: use-mounted.ts:17

Callback function that is invoked when the component unmounts.

Returns​

void