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

22 lines
506 B
TypeScript

import { createReducer, on } from '@ngrx/store';
import { initialState } from './state';
import { bulkInfoSuccess } from './actions';
import * as AuthenticationStore from '@app/store/account/authentication';
export const reducer = createReducer(
initialState,
on(bulkInfoSuccess, (state, action) => {
return {
...state,
statusBulkInfoList: action.statusBulkInfoList
};
}),
on(AuthenticationStore.logout, (state, action) => {
return {
...initialState
};
})
);