This is a callback hook that is similar to useCallback except in
one important way. When it's dependencies change it does
NOT update the callback handler itself. This is useful
in the instance where you want to pass a callback and
want to avoid have stale values do to closure but don't
want a re-render to occur.
This is a callback hook that is similar to useCallback except in one important way. When it's dependencies change it does NOT update the callback handler itself. This is useful in the instance where you want to pass a callback and want to avoid have stale values do to closure but don't want a re-render to occur.