MCPcopy Create free account
hub / github.com/Roy3838/Observer / loop

Function loop

app/src/components/LocalOnboardingTutorial.tsx:74–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 if (!current?.targetSelector) { setRect(null); return; }
73 let rafId: number;
74 const loop = () => {
75 const el = firstVisible(current.targetSelector);
76 if (el) setRect(el.getBoundingClientRect());
77 rafId = requestAnimationFrame(loop);
78 };
79 rafId = requestAnimationFrame(loop);
80 return () => cancelAnimationFrame(rafId);
81 }, [current?.targetSelector]);

Callers

nothing calls this directly

Calls 1

firstVisibleFunction · 0.85

Tested by

no test coverage detected