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

14 lines
291 B
TypeScript
Raw Normal View History

2019-09-25 08:26:19 +00:00
import { createReducer, on } from '@ngrx/store';
import { initialState } from './state';
import { authSuccess } from './actions';
export const reducer = createReducer(
initialState,
on(authSuccess, (state, action) => {
return {
...state,
auth: action.res
};
})
);