We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 839b42a commit f17a032Copy full SHA for f17a032
modules/router-store/src/router_store_module.ts
@@ -96,7 +96,7 @@ export type RouterReducerState<T = RouterStateSnapshot> = {
96
};
97
98
export function routerReducer<T = RouterStateSnapshot>(
99
- state: RouterReducerState<T>,
+ state: RouterReducerState<T> | undefined,
100
action: RouterAction<any, T>
101
): RouterReducerState<T> {
102
switch (action.type) {
@@ -108,7 +108,7 @@ export function routerReducer<T = RouterStateSnapshot>(
108
navigationId: action.payload.event.id,
109
110
default:
111
- return state;
+ return state as RouterReducerState<T>;
112
}
113
114
0 commit comments