This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
// Metro module 6667 (f6668).
import { useEffect, useRef } from "react";
export default function useTimeout(a0, a1) {
const current = a0;
const ref = useRef(a0);
useEffect(() => {
ref.current = current;
}, [a0]);
useEffect(() => {
if (a1 !== null) {
let c25945_0 = setTimeout(() => ref.current(), a1);
return () => clearTimeout(c25945_0);
}
}, [a1, ref]);
};