Flutter hook that delays invoking a function until after wait milliseconds
have elapsed since the last time the debounced function was invoked.
The third argument is the array of values that the debounce depends on,
in the same manner as useEffect. The debounce timeout will start when one
of the values changes.
React state hook that returns the latest state as described in
the React hooks FAQ(ref link). This is mostly useful to get access to the
latest value of some props or state inside an asynchronous callback,
instead of that value at the time the callback was created from.
ref link
Flutter lifecycle hook that call mount and unmount callbacks, when component
is mounted and un-mounted, respectively.
If you want to use hook that app lifecycles, recommended use to
flutter_hooks v0.18.1+ useAppLifecycleState(ref link1) or useOnAppLifecycleStateChange(ref link2)
ref link1ref link2
Tracks an array and provides methods to modify it. To cause component
re-build you have to use these methods instead of direct interaction
with array - it won't cause re-build.
We can ensure that actions object and actions itself will not mutate or
change between builds, so there is no need to add it to useEffect
dependencies and safe to pass them down to children.
Just like usePrevious but it will only update once the value actually
changes. This is important when other hooks are involved and you aren't
just interested in the previous props version, but want to know the
previous distinct value