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

Function getScrollPosition

packages/shared/src/lib/scrollRestoration.ts:25–28  ·  view source on GitHub ↗
(
  asPath: string,
  kind: ScrollPositionKind = 'page',
)

Source from the content-addressed store, hash-verified

23 getScrollKey(window.location.href, 'page');
24
25export const getScrollPosition = (
26 asPath: string,
27 kind: ScrollPositionKind = 'page',
28): number | undefined => scrollPositions.get(getScrollKey(asPath, kind));
29
30export const saveHistoryEntryScrollPosition = (
31 entryKey: string,

Callers 5

FeedWidgetRailFunction · 0.90
usePostModalNavigationFunction · 0.90
useScrollRestorationFunction · 0.90
getSlackShareReturnPathFunction · 0.90

Calls 1

getScrollKeyFunction · 0.85

Tested by

no test coverage detected