( asPath: string, position: number, kind: ScrollPositionKind = 'page', )
| 42 | }; |
| 43 | |
| 44 | export const saveScrollPosition = ( |
| 45 | asPath: string, |
| 46 | position: number, |
| 47 | kind: ScrollPositionKind = 'page', |
| 48 | ): void => saveHistoryEntryScrollPosition(getScrollKey(asPath, kind), position); |
| 49 | |
| 50 | // The next route change switches a view of the page on screen in place (a |
| 51 | // replace of the entry on screen, by a tab), so nothing is saved or restored |
no test coverage detected