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

Function onPress

packages/shared/src/hooks/usePostPrefetch.ts:62–67  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

60 router.prefetch(href).catch(() => undefined);
61 };
62 const onPress = (event: Event) => {
63 const anchor = pageLink(event.target);
64 if (anchor) {
65 prefetch(anchor);
66 }
67 };
68 const near = new IntersectionObserver(
69 (entries) =>
70 entries.forEach((entry) => {

Callers

nothing calls this directly

Calls 2

pageLinkFunction · 0.85
prefetchFunction · 0.70

Tested by

no test coverage detected