mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
removed the concept of prerender strategies. rehydrate is the default now
This commit is contained in:
@@ -29,10 +29,6 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
// Log directory
|
// Log directory
|
||||||
logDirectory: '.',
|
logDirectory: '.',
|
||||||
// NOTE: rehydrate or replay
|
|
||||||
// rehydrate will transfer prerender state to browser state, actions do not need to replay
|
|
||||||
// replay will transfer an array of actions to browser, actions replay automatically
|
|
||||||
prerenderStrategy: 'rehydrate',
|
|
||||||
// NOTE: will log all redux actions and transfers in console
|
// NOTE: will log all redux actions and transfers in console
|
||||||
debug: false
|
debug: false
|
||||||
};
|
};
|
||||||
|
@@ -6,13 +6,11 @@ let actionCounter = 0;
|
|||||||
|
|
||||||
export function debugMetaReducer(reducer) {
|
export function debugMetaReducer(reducer) {
|
||||||
return (state, action) => {
|
return (state, action) => {
|
||||||
if (isNotEmpty(console.debug)) {
|
actionCounter++;
|
||||||
actionCounter++;
|
console.log('@ngrx action', actionCounter, action.type);
|
||||||
console.debug('@ngrx action', actionCounter, action.type);
|
console.log('state', JSON.stringify(state));
|
||||||
console.debug('state', state);
|
console.log('action', JSON.stringify(action));
|
||||||
console.debug('action', action);
|
console.log('------------------------------------');
|
||||||
console.debug('------------------------------------');
|
|
||||||
}
|
|
||||||
return reducer(state, action);
|
return reducer(state, action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -10,6 +10,5 @@ export interface GlobalConfig extends Config {
|
|||||||
cache: CacheConfig;
|
cache: CacheConfig;
|
||||||
universal: UniversalConfig;
|
universal: UniversalConfig;
|
||||||
logDirectory: string;
|
logDirectory: string;
|
||||||
prerenderStrategy: string;
|
|
||||||
debug: boolean;
|
debug: boolean;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user