UseDebouncedTimeout
object UseDebouncedTimeout
Given a timeout
, this hooks provide a TimeoutHandle
which can be used to submit an effect,
which will be run after the timeout
. If a new effect is submitted before the timeout
, the
previous one will be canceled (whether it already started running or not).
A submitted effect can be explicitly canceled.