From 74ddb2316c89ad8f4d9555ec1aea81585e5c40ed Mon Sep 17 00:00:00 2001 From: CTomlyn Date: Thu, 5 Sep 2024 16:07:17 -0700 Subject: [PATCH] =?UTF-8?q?#2141=20Latest=20version=20of=20Chrome=20debugg?= =?UTF-8?q?er=20causing=20redux=20to=20run=20slowly=20i=E2=80=A6=20(#2142)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: CTomlyn --- .../src/object-model/redux/canvas-store.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/canvas_modules/common-canvas/src/object-model/redux/canvas-store.js b/canvas_modules/common-canvas/src/object-model/redux/canvas-store.js index 057ccad50b..b7c9bb108b 100644 --- a/canvas_modules/common-canvas/src/object-model/redux/canvas-store.js +++ b/canvas_modules/common-canvas/src/object-model/redux/canvas-store.js @@ -80,12 +80,14 @@ export default class CanavasStore { toppanel: { } }; - if (typeof window !== "undefined") { - const enableDevTools = window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(); - this.store = createStore(combinedReducer, initialState, enableDevTools); - } else { - this.store = createStore(combinedReducer, initialState); - } + // This code removed because it was causing slowdown in the test harness with the + // debugger open in the latest version of Chrome. + // if (typeof window !== "undefined") { + // const enableDevTools = window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(); + // this.store = createStore(combinedReducer, initialState, enableDevTools); + // } else { + this.store = createStore(combinedReducer, initialState); + // } this.dispatch = this.dispatch.bind(this); }