Skip to content

Commit

Permalink
Add actionsBlacklist, actionsWhitelist for compatible extension API
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Nov 12, 2016
1 parent 4951ce7 commit d2a86a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/worker/reduxAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ export default function devToolsEnhancer(options = {}) {
pauseActionType = '@@PAUSED',
actionCreators,
filters,
actionsBlacklist,
actionsWhitelist,
actionSanitizer,
stateSanitizer,
} = options;
Expand All @@ -171,7 +173,11 @@ export default function devToolsEnhancer(options = {}) {
name: name || `${defaultName}-${id}`,
id,
store,
filters,
filters: (filters || actionsBlacklist || actionsWhitelist) && {
whitelist: actionsWhitelist,
blacklist: actionsBlacklist,
...filters,
},
actionCreators: actionCreators && (() => getActionsArray(actionCreators)),
stateSanitizer,
actionSanitizer,
Expand Down

0 comments on commit d2a86a9

Please sign in to comment.