MCPcopy Create free account
hub / github.com/dailydotdev/apps / scheduleUpdate

Function scheduleUpdate

packages/shared/src/hooks/useScrollFade.ts:58–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 const scheduleUpdate = () => {
59 if (frameRef.current !== undefined) {
60 cancelAnimationFrame(frameRef.current);
61 }
62 frameRef.current = requestAnimationFrame(() => updateScrollFade(element));
63 };
64
65 const resizeObserver = new ResizeObserver(scheduleUpdate);
66 resizeObserver.observe(element);

Callers

nothing calls this directly

Calls 1

updateScrollFadeFunction · 0.85

Tested by

no test coverage detected