removed the concept of prerender strategies. rehydrate is the default now

This commit is contained in:
Art Lowel
2018-02-01 13:57:24 +01:00
parent 4fbceab1b9
commit 78574df60b
3 changed files with 5 additions and 12 deletions

View File

@@ -29,10 +29,6 @@ module.exports = {
},
// Log directory
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
debug: false
};

View File

@@ -6,13 +6,11 @@ let actionCounter = 0;
export function debugMetaReducer(reducer) {
return (state, action) => {
if (isNotEmpty(console.debug)) {
actionCounter++;
console.debug('@ngrx action', actionCounter, action.type);
console.debug('state', state);
console.debug('action', action);
console.debug('------------------------------------');
}
actionCounter++;
console.log('@ngrx action', actionCounter, action.type);
console.log('state', JSON.stringify(state));
console.log('action', JSON.stringify(action));
console.log('------------------------------------');
return reducer(state, action);
}
}

View File

@@ -10,6 +10,5 @@ export interface GlobalConfig extends Config {
cache: CacheConfig;
universal: UniversalConfig;
logDirectory: string;
prerenderStrategy: string;
debug: boolean;
}