Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function configureStore(next, monitorReducer, config) {
return compose(
instrument(
monitorReducer,
{
maxAge: config.maxAge,
shouldCatchErrors: config.shouldCatchErrors || window.shouldCatchErrors,
shouldHotReload: config.shouldHotReload,
shouldRecordChanges: config.shouldRecordChanges,
shouldStartLocked: config.shouldStartLocked,
pauseActionType: config.pauseActionType || '@@PAUSED'
}
),
persistState(
getUrlParam('debug_session'),
config.deserializeState,
config.deserializeAction
)
)(next);
}
export default function configureStore(next, monitorReducer, config) {
return compose(
instrument(
monitorReducer,
{
maxAge: config.maxAge || window.devToolsOptions.maxAge || 50,
stringifyActionTypes: !config.serialize,
shouldCatchErrors: config.shouldCatchErrors || window.shouldCatchErrors,
shouldHotReload: config.shouldHotReload,
shouldRecordChanges: config.shouldRecordChanges,
shouldStartLocked: config.shouldStartLocked,
pauseActionType: config.pauseActionType || '@@PAUSED'
}
),
persistState(
getUrlParam('debug_session'),
config.deserializeState,
config.deserializeAction
)
)(next);
}