useSafeTimeout
A utility Hook that allows safely calling `setTimeout` and `clearTimeout` within a component.
useSafeTimeout
is a utility Hook that allows safely calling setTimeout
and clearTimeout
within a component, ensuring that all timeouts are cleared when the component unmounts.