mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
remove clearStateMetaReducer
This commit is contained in:
@@ -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
|
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user