()
| 29 | }; |
| 30 | |
| 31 | const createRouterInitialState = (): RouterMemoryState => { |
| 32 | return { |
| 33 | query: {}, |
| 34 | pathname: '/', |
| 35 | asPath: '/', |
| 36 | }; |
| 37 | }; |
| 38 | |
| 39 | export const useRouterMemory = (): UseRouterMemory => { |
| 40 | const [state, dispatch] = useReducer( |
nothing calls this directly
no outgoing calls
no test coverage detected