Content
useUnmount
A custom React hook that executes a callback function when the component unmounts.
useUnmount
Usage
API
useUnmount
Executes a callback function when the component unmounts.
Parameters
Name | Type | Description |
---|---|---|
fn | () => void | The callback function to be executed on unmount. |