fixed issue with reducer sharing url query instance with angular router

This commit is contained in:
Torkel Ödegaard 2018-11-07 11:44:50 -08:00
parent bcd0b2fcf7
commit d7655e0b54

View File

@ -23,7 +23,9 @@ export const locationReducer = (state = initialState, action: Action): LocationS
return {
url: renderUrl(path || state.path, query),
path: path || state.path,
query: query,
query: {
...query,
},
routeParams: routeParams || state.routeParams,
};
}