How to use the redux-devtools/lib/persistState function in redux-devtools

To help you get started, we’ve selected a few redux-devtools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zalmoxisus / redux-devtools-extension / src / app / stores / enhancerStore.js View on Github external
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);
}
github zalmoxisus / redux-devtools-extension / src / app / stores / enhancerStore.js View on Github external
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);
}