PHP 7.4.33
Preview: useRef.d.ts Size: 707 B
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/use-callback-ref/dist/es2015/useRef.d.ts
import { MutableRefObject } from 'react';
/**
 * creates a MutableRef with ref change callback
 * @param initialValue - initial ref value
 * @param {Function} callback - a callback to run when value changes
 *
 * @example
 * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
 * ref.current = 1;
 * // prints 0 -> 1
 *
 * @see https://reactjs.org/docs/hooks-reference.html#useref
 * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
 * @returns {MutableRefObject}
 */
export declare function useCallbackRef<T>(initialValue: T | null, callback: (newValue: T | null, lastValue: T | null) => void): MutableRefObject<T | null>;

Directory Contents

Dirs: 0 × Files: 20
Name Size Perms Modified Actions
502 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
556 B lrw-r--r-- 2025-06-16 05:45:38
Edit Download
357 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
549 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
386 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
449 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
645 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
735 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
714 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
1.20 KB lrw-r--r-- 2025-06-16 05:45:39
Edit Download
376 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
449 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
301 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
11 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
737 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
1.74 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
707 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
1.18 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
655 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
725 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).