useSafetyFirst
Deprecated: This hook is not related to console functionality. Hook that ensures a safe asynchronous setting of React state in case a given component could be unmounted. It returns an array with a pair of state value and its set function.
| Parameter Name | Description |
|---|---|
|
initial state value |