useUnmount
Executes a callback function when the component unmounts.
useUnmount
Installation
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. |