Skip to content

Commit

Permalink
fix: avoid missing Redux devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
friedjoff committed Jul 7, 2020
1 parent 555856d commit 179b75a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/store/enhancers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import querySync from './querySync';
import projection from './projection';

const composeEnhancers =
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
trace: true,
traceLimit: 25,
}) || compose;
(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ &&
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
trace: true,
traceLimit: 25,
})) ||
compose;

export default composeEnhancers(querySync, projection);

0 comments on commit 179b75a

Please # to comment.