• 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.

    Type Parameters

    • T extends ((...args) => any)

    Parameters

    • callback: T
    • deps: DependencyList

    Returns T