From 0be4ea9c70376174938bd5935f4a70e0650a211e Mon Sep 17 00:00:00 2001 From: Mark Erikson Date: Wed, 16 Oct 2019 22:46:32 -0400 Subject: [PATCH] Tweak devtools options setup to hopefully work better in IE11 --- src/configureStore.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/configureStore.ts b/src/configureStore.ts index 33b2e04d57..f333ffa776 100644 --- a/src/configureStore.ts +++ b/src/configureStore.ts @@ -118,11 +118,15 @@ export function configureStore( let finalCompose = compose if (devTools) { - finalCompose = composeWithDevTools({ - // Enable capture of stack traces for dispatched Redux actions - trace: !IS_PRODUCTION, - ...(typeof devTools === 'object' && devTools) - }) + const devToolsOptions: DevToolsOptions = Object.assign( + { + // Enable capture of stack traces for dispatched Redux actions + trace: !IS_PRODUCTION + }, + typeof devTools === 'object' ? devTools : {} + ) + + finalCompose = composeWithDevTools(devToolsOptions) } let storeEnhancers: StoreEnhancer[] = [middlewareEnhancer]