t-hooks
    Preparing search index...

    Function useFreeTaskCallback

    • Unmanaged task callback hook

      Memoizes a task function with useCallback. The hook does not cancel the returned task on unmount, dependency change, or a later call. The caller owns that task.

      Type Parameters

      • A extends any[]

        callback argument types

      • R

        resulting task resolve type

      Parameters

      • taskFunction: TaskFunction<A, R>

        task function to memoize as a callback

      • deps: DependencyList

        dependency list

      Returns TaskFunction<A, R>

      memoized task function