SheetXL - v0.3.20
    Preparing search index...

    Variable useCallbackRefConst

    useCallbackRef: <T extends (...args: any[]) => any>(
        callback: T,
        deps: DependencyList,
    ) => T

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

      • <T extends (...args: any[]) => any>(callback: T, deps: DependencyList): T
      • Type Parameters

        • T extends (...args: any[]) => any

        Parameters

        • callback: T
        • deps: DependencyList

        Returns T