Files
simply_cpq/website/node_modules/@base-ui/utils/useValueAsRef.d.mts
T
2026-08-07 21:39:30 +02:00

10 lines
317 B
TypeScript

/**
* Untracks the provided value by turning it into a ref to remove its reactivity.
*
* Used to access the passed value inside `React.useEffect` without causing the effect to re-run when the value changes.
*/
export declare function useValueAsRef<T>(value: T): {
current: T;
next: T;
effect: () => void;
};