Fix missing dependency in effect

This commit is contained in:
Bill Thornton
2024-02-15 11:28:10 -05:00
parent 9fa0b4f5b2
commit 2d667cabba
+1 -1
View File
@@ -11,7 +11,7 @@ export function usePrevious<T>(value: T, initialValue?: T): T | undefined {
useEffect(() => {
ref.current = value;
});
}, [ value ]);
return ref.current;
}