Skip to content

useSafeTimeout

useSafeTimeout is a utility Hook that allows you to safely call setTimeout and clearTimeout within a component, ensuring that all timeouts are cleared when the component unmounts.

Usage

Edit this page on GitHub
1 contributoremplums
Last edited by emplums on February 11, 2021