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

+24
View File
@@ -0,0 +1,24 @@
// Metro module 6240 (f6241).
import { useEffect, useRef } from "react";
import Module38 from "../_bundle/Module38";
export default function useInterval(a0, a1) {
const current = a0;
const ref = useRef(a0);
const ref2 = useRef(null);
useEffect(() => {
ref.current = current;
}, [a0]);
useEffect(() => {
if (a1 !== null) {
ref2.current = setInterval(function() {
Module38(ref.current != null, "Missing callback");
ref.current();
}, a1);
return () => clearInterval(ref2.current);
}
if (ref2.current !== null) {
clearInterval(ref2.current);
ref2.current = null;
}
}, [a1]);
};