Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-16 02:20:32 +00:00
parent a4605e311a
commit 71de1506ca
28603 changed files with 2179459 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,10 @@
import { useRef } from 'react';
/**
* @see https://github.com/streamich/react-use/blob/master/docs/useLatest.md
*/
export var useLatest = function useLatest(value) {
var ref = useRef(value);
ref.current = value;
return ref;
};