From 9c155c73ede511e78bef6b3b5698439b87c41855 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Wed, 17 Jan 2018 10:43:41 -0800 Subject: [PATCH] fix(client): Make devtools optional/disable You must enable debug to enable devtools --- client/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/index.js b/client/index.js index 92f87720fe..0add50d077 100644 --- a/client/index.js +++ b/client/index.js @@ -22,7 +22,7 @@ const isDev = Rx.config.longStackSupport = debug.enabled('fcc:*'); const log = debug('fcc:client'); const hotReloadTimeout = 2000; const { - devToolsExtension = _.noop, + devToolsExtension, location, history: _history, document, @@ -61,7 +61,7 @@ createApp({ defaultState, epics, epicOptions, - enhancers: [ devToolsExtension() ] + enhancers: isDev && devToolsExtension && [ devToolsExtension() ] }) .doOnNext(({ store }) => { if (module.hot && typeof module.hot.accept === 'function') {