Skip to content

Commit 0be4ea9

Browse files
committed
Tweak devtools options setup to hopefully work better in IE11
1 parent d5397aa commit 0be4ea9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/configureStore.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,15 @@ export function configureStore<S = any, A extends Action = AnyAction>(
118118
let finalCompose = compose
119119

120120
if (devTools) {
121-
finalCompose = composeWithDevTools({
122-
// Enable capture of stack traces for dispatched Redux actions
123-
trace: !IS_PRODUCTION,
124-
...(typeof devTools === 'object' && devTools)
125-
})
121+
const devToolsOptions: DevToolsOptions = Object.assign(
122+
{
123+
// Enable capture of stack traces for dispatched Redux actions
124+
trace: !IS_PRODUCTION
125+
},
126+
typeof devTools === 'object' ? devTools : {}
127+
)
128+
129+
finalCompose = composeWithDevTools(devToolsOptions)
126130
}
127131

128132
let storeEnhancers: StoreEnhancer[] = [middlewareEnhancer]

0 commit comments

Comments
 (0)