Type Alias: UseMountedOptions
UseMountedOptions =
object
Defined in: use-mounted.ts:8
Configuration options for the useMounted hook.
Properties
onMount?
optionalonMount?: () =>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?
optionalonUnmount?: () =>void
Defined in: use-mounted.ts:17
Callback function that is invoked when the component unmounts.
Returns
void