From 78574df60b3c489348fdccd91ee2c7c23a32e8df Mon Sep 17 00:00:00 2001 From: Art Lowel Date: Thu, 1 Feb 2018 13:57:24 +0100 Subject: [PATCH] removed the concept of prerender strategies. rehydrate is the default now --- config/environment.default.js | 4 ---- src/app/app.metareducers.ts | 12 +++++------- src/config/global-config.interface.ts | 1 - 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/config/environment.default.js b/config/environment.default.js index 7db028c0cc..ad7be69b9e 100644 --- a/config/environment.default.js +++ b/config/environment.default.js @@ -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 }; diff --git a/src/app/app.metareducers.ts b/src/app/app.metareducers.ts index c803568392..4d94c899d7 100644 --- a/src/app/app.metareducers.ts +++ b/src/app/app.metareducers.ts @@ -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); } } diff --git a/src/config/global-config.interface.ts b/src/config/global-config.interface.ts index 056263dcb7..bd04f9d3a7 100644 --- a/src/config/global-config.interface.ts +++ b/src/config/global-config.interface.ts @@ -10,6 +10,5 @@ export interface GlobalConfig extends Config { cache: CacheConfig; universal: UniversalConfig; logDirectory: string; - prerenderStrategy: string; debug: boolean; }