Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow whitelisting actions for flux-standard-action check #9

Merged
merged 2 commits into from
May 12, 2017

Conversation

randycoulman
Copy link
Contributor

Some libraries that dispatch actions through our reducers do not conform to the flux-standard-action spec, but createReducer will throw a NonStandardAction when encountering those actions.

This PR adds allows createReducer to take an allowNonStandardActionIf predicate that is applied to each action. If the predicate returns true, we no longer check to see if it conforms to the FSA spec.

Randy Coulman added 2 commits May 11, 2017 16:43
Some libraries that dispatch actions through our reducers do not
conform to the flux-standard-action spec, but `createReducer` will
throw a `NonStandardAction` when encountering those actions.

This PR adds allows `createReducer` to take an
`allowNonStandardActionIf` predicate that is applied to each action.
If the predicate returns true, we no longer check to see if it conforms
to the FSA spec.
@randycoulman randycoulman requested review from lexun and seanculver May 12, 2017 00:09
@randycoulman randycoulman merged commit 777acda into master May 12, 2017
@randycoulman randycoulman deleted the features/whitelist-actions-for-fsa-check branch May 12, 2017 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants