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

Function getHistoryEntryKey

packages/shared/src/lib/scrollRestoration.ts:22–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20};
21
22export const getHistoryEntryKey = (): string =>
23 getScrollKey(window.location.href, 'page');
24
25export const getScrollPosition = (
26 asPath: string,

Callers 4

onLeaveFunction · 0.90
useScrollRestorationFunction · 0.90
restoreScrollPositionFunction · 0.70
restoreFunction · 0.70

Calls 1

getScrollKeyFunction · 0.85

Tested by

no test coverage detected