Skip to content

Commit

Permalink
#2141 Latest version of Chrome debugger causing redux to run slowly i… (
Browse files Browse the repository at this point in the history
#2142)

Signed-off-by: CTomlyn <[email protected]>
  • Loading branch information
tomlyn authored Sep 5, 2024
1 parent 813376b commit 74ddb23
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 74ddb23

Please sign in to comment.