remove clearStateMetaReducer

This commit is contained in:
Art Lowel
2020-04-24 14:06:37 +02:00
parent c2789dfbf7
commit df2cc22172

View File

@@ -1,5 +1,4 @@
import { StoreActionTypes } from './store.actions'; import { StoreActionTypes } from './store.actions';
import { AuthActionTypes } from './core/auth/auth.actions';
// fallback ngrx debugger // fallback ngrx debugger
let actionCounter = 0; let actionCounter = 0;
@@ -29,26 +28,10 @@ export function universalMetaReducer(reducer) {
} }
} }
// const clearStateActions = [
// AuthActionTypes.LOG_OUT_SUCCESS,
// ];
//
// export function clearStateMetaReducer(reducer) {
// return function (state, action) {
//
// if (clearStateActions.includes(action.type)) {
// state = {};
// }
//
// return reducer(state, action);
// };
// }
export const debugMetaReducers = [ export const debugMetaReducers = [
debugMetaReducer debugMetaReducer
]; ];
export const appMetaReducers = [ export const appMetaReducers = [
universalMetaReducer, universalMetaReducer
// clearStateMetaReducer
]; ];