Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
I found a bit confusing where ´counter´ and ´notACounter´ where coming from, I hope that helps others.
  • Loading branch information
juanpicado authored Nov 29, 2016
1 parent 77812ea commit d795cc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ You can also use `filterActions` to only accept actions that are declared in an
import { combineReducers } from 'redux';
import { filterActions } from 'redux-ignore'; // pull in the filterActions function
import { STAY_COOL, KEEP_CHILLIN } from './actions';
import { counter, notACounter } from './reducers';

combineReducers({
counter: filterActions(counter, (action) => action.type.match(/COUNTER$/)), // only run on actions that satisfy the regex
Expand Down

0 comments on commit d795cc4

Please sign in to comment.