next-ucap-messenger/projects/ucap-webmessenger-app/src/app/store/messenger/status/reducers.ts

14 lines
328 B
TypeScript
Raw Normal View History

2019-10-02 09:09:39 +00:00
import { createReducer, on } from '@ngrx/store';
import { initialState } from './state';
import { bulkInfoSuccess } from './actions';
export const reducer = createReducer(
initialState,
on(bulkInfoSuccess, (state, action) => {
return {
...state,
statusBulkInfoList: action.statusBulkInfoList
};
})
);