我的应用程序中有一个功能缩减器:-
fromCompnay = {
list:listReducer,
growth:growthReducer
}
fromEmployee = {
list:listReducer,
growth:growthReducer
}
StoreModule.forFeature('company',fromCompany);
StoreModule.forFeature('employee',fromEmployee);
重置这些减速器的状态是一种干净的方法。