Docs
useUnmount
Run a function when a component unmounts, ensuring cleanups or final actions are handled effectively.
Installation
Usage
API Reference
Parameters
Name | Type | Description |
---|---|---|
func | () => void | The cleanup function to be executed on unmount. |
Returns
void