MCPcopy Create free account
hub / github.com/api-platform/website / handler

Function handler

pwa/hooks/useIntersection.tsx:13–15  ·  view source on GitHub ↗
(entries: IntersectionObserverEntry[])

Source from the content-addressed store, hash-verified

11 useEffect(() => {
12 if (ref.current && typeof IntersectionObserver === "function") {
13 const handler = (entries: IntersectionObserverEntry[]) => {
14 setIntersectionObserverEntry(entries[0]);
15 };
16
17 const observer = new IntersectionObserver(handler, options);
18 observer.observe(ref.current);

Callers 1

listenerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected