oolib 2.187.8 → 2.187.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -147,7 +147,7 @@ var ImageInputContextProvider = function (_a) {
|
|
|
147
147
|
}, []);
|
|
148
148
|
console.log({ outside_value: value });
|
|
149
149
|
// Create a ref to always track the latest value
|
|
150
|
-
var valueRef = useRef(value);
|
|
150
|
+
var valueRef = (0, react_1.useRef)(value);
|
|
151
151
|
// Keep the ref updated whenever value changes
|
|
152
152
|
(0, react_1.useEffect)(function () {
|
|
153
153
|
valueRef.current = value;
|