v2.8.3
New predicate
parameter (#232)
-
predicate (function) - called for every action before sending, takes
state
andaction
object, and returnstrue
in case it allows sending the current data to the monitor. Use it as a more advanced version ofactionsBlacklist
/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:
- Diff in the Inspector monitor show a preview before expanding it:
Deprecations
- Renamed
statesFilter
andactionsFilter
tostateSanitizer
andactionSanitizer
.