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

Function createRouterInitialState

packages/shared/src/hooks/useRouterMemory.ts:31–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29};
30
31const createRouterInitialState = (): RouterMemoryState => {
32 return {
33 query: {},
34 pathname: '/',
35 asPath: '/',
36 };
37};
38
39export const useRouterMemory = (): UseRouterMemory => {
40 const [state, dispatch] = useReducer(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected