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

Function pathOf

packages/shared/src/hooks/usePostPrefetch.ts:24–25  ·  view source on GitHub ↗
(anchor: HTMLAnchorElement)

Source from the content-addressed store, hash-verified

22};
23
24const pathOf = (anchor: HTMLAnchorElement): string =>
25 `${anchor.pathname}${anchor.search}${anchor.hash}`;
26
27export const usePostPrefetch = (): void => {
28 const router = useRouter();

Callers 1

prefetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected