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

Function read

packages/shared/src/components/shell/ShellTopButton.tsx:14–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 useEffect(() => {
13 let frame = 0;
14 const read = () => {
15 frame = 0;
16 setPast(window.scrollY >= window.innerHeight);
17 };
18 const onScroll = () => {
19 if (!frame) {
20 frame = window.requestAnimationFrame(read);

Callers 1

useScrolledPastViewportFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected