Using @ngrx/router-store actions with ngrx 8 createReducer() and on() function
我有一个
1 2 3 4 5 6 7 | let myAcction = createAction('my action', prop<boolean>); let reducer = createReducer( initialState, on(myAction, (state, prop) => ({...state, example=prop })), on(ROUTER_NAVIGATION, (state, routeParams) => ({...state, example2:{...routeParams}})) ) |
由于
Argument of type '"@ngrx/router-store/navigation"' is not assignable
to parameter of type 'ActionCreator>'.
Type '"@ngrx/router-store/navigation"' is not assignable to type 'FunctionWithParametersType'
它也不能与
Argument of type 'boolean' is not assignable to parameter of type
'ActionCreator>'
如何在createReducer / on函数中使用ngrx / router-store操作?我找不到为给定动作导出的动作创建者。
我会在其存储库上针对ngrx提出问题。同时,您可以在对象: