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

View File

@@ -0,0 +1 @@
export declare const usePrevious: <T>(state: T) => T | undefined;

View File

@@ -0,0 +1,8 @@
import { useEffect, useRef } from 'react';
export var usePrevious = function usePrevious(state) {
var ref = useRef();
useEffect(function () {
ref.current = state;
});
return ref.current;
};