/** * Returns the last committed value for as long as new values hold the same data, so an object or * array literal created on every render keeps one reference. Use it to feed such a value to a * hook dependency list, a memoized component or anything else that compares by identity. * * Plain objects and arrays are compared key by key, at every depth; functions, class instances * and other values by identity, so pass stable functions inside the value. The reference advances * only when React commits a render, so a render that React discards cannot replace it. * * @param value - Value whose reference should only change when its data does. * @returns `value`, or the previously committed value when it holds the same data. */ export declare const useSameValuesReference: (value: T) => T; //# sourceMappingURL=useSameValuesReference.d.ts.map