Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-12 09:12:41 +00:00
parent a4605e311a
commit a6ae5199b0
29756 changed files with 2526222 additions and 278 deletions

19
node_modules/antd/lib/_util/hooks/useSyncState.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useSyncState = void 0;
var React = _interopRequireWildcard(require("react"));
var _useForceUpdate = require("./useForceUpdate");
const useSyncState = initialValue => {
const ref = React.useRef(initialValue);
const [, forceUpdate] = (0, _useForceUpdate.useForceUpdate)();
return [() => ref.current, newValue => {
ref.current = newValue;
// re-render
forceUpdate();
}];
};
exports.useSyncState = useSyncState;