decord/source/1613_useDeepStableValue.js
2026-08-11 06:20:06 +00:00

17 lines
409 B
JavaScript

// Module ID: 1613
// Function ID: 1614
// Name: useDeepStableValue
// Dependencies: [19, 1575]
// Exports: useDeepStableValue
// Module 1613 (useDeepStableValue)
import noop from "noop";
export const useDeepStableValue = function useDeepStableValue(current) {
const ref = React.useRef(current);
if (!importDefault(1575)(ref.current, current)) {
ref.current = current;
}
return ref.current;
};