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

Function restore

packages/shared/src/components/shell/ExploreSortMenu.tsx:58–63  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

56): void => {
57 let letGo = () => undefined;
58 const restore = (url: string) => {
59 letGo();
60 if (url.split(/[?#]/)[0] === href) {
61 restoreScrollPosition(position);
62 }
63 };
64 letGo = () => {
65 router.events.off('routeChangeComplete', restore);
66 router.events.off('routeChangeError', letGo);

Callers

nothing calls this directly

Calls 2

restoreScrollPositionFunction · 0.90
letGoFunction · 0.85

Tested by

no test coverage detected