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