MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / resetInterval

Function resetInterval

app/components/Home/HomeInfoBoxSection.tsx:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 }, [index]);
65
66 const resetInterval = () => {
67 if (interval.current != null) {
68 clearInterval(interval.current);
69 }
70 interval.current = setInterval(() => {
71 setIndex((i) => (i = (i + 1) % infoBoxData.length));
72 }, autoplayDuration);
73 };
74
75 useEffect(() => {
76 resetInterval();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected