Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-16 01:51:36 +00:00
parent a4605e311a
commit 58905d02c2
28599 changed files with 2179074 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
/**
* @see https://github.com/streamich/react-use/blob/master/docs/useLatest.md
*/
export declare const useLatest: <T>(value: T) => {
readonly current: T;
};

View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useLatest = void 0;
var _react = require("react");
/**
* @see https://github.com/streamich/react-use/blob/master/docs/useLatest.md
*/
var useLatest = exports.useLatest = function useLatest(value) {
var ref = (0, _react.useRef)(value);
ref.current = value;
return ref;
};