Skip to content

Commit deb0f5e

Browse files
committed
Catch errors on devtools instrumentation only when needed
See https://github.com/zalmoxisus/redux-devtools-instrument/releases/tag/v1. 1.0
1 parent e7627d2 commit deb0f5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"dependencies": {
5555
"jsan": "^3.1.2",
5656
"querystring": "^0.2.0",
57-
"redux-devtools-instrument": "^1.0.0",
57+
"redux-devtools-instrument": "^1.1.0",
5858
"socketcluster-client": "^4.3.16"
5959
}
6060
}

src/devTools.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export default function devTools(options = {}) {
273273
return (next) => {
274274
return (reducer, initialState) => {
275275
store = configureStore(
276-
next, monitorReducer, { maxAge }
276+
next, monitorReducer, { maxAge, shouldCatchErrors: !!sendOnError }
277277
)(reducer, initialState);
278278

279279
if (realtime) start();

0 commit comments

Comments
 (0)