Skip to content

v2.8.3

Compare
Choose a tag to compare
@zalmoxisus zalmoxisus released this 21 Oct 11:01
· 284 commits to master since this release

New predicate parameter (#232)

  • predicate (function) - called for every action before sending, takes state and action object, and returns true in case it allows sending the current data to the monitor. Use it as a more advanced version of actionsBlacklist/actionsWhitelist parameters.
    Example of usage:

      const store = createStore(rootReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__({
        predicate: (state, action) => state.dev.logLevel === VERBOSE && !action.forwarded
      }));

Updated monitors

  • States and actions objects are collapsed from now:
    screen shot 2016-10-21 at 1 58 39 pm
  • Diff in the Inspector monitor show a preview before expanding it:
    screen shot 2016-10-21 at 1 59 11 pm

Deprecations

  • Renamed statesFilter and actionsFilter to stateSanitizer and actionSanitizer.