Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
update comment on filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
davidroeca committed Dec 9, 2016
1 parent c5f9966 commit f5be004
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ export default function undoable (reducer, rawConfig = {}) {
}

if (typeof config.filter === 'function' && !config.filter(action, res, history)) {
// if filtering an action, first check latestUnfiltered, and update past;
// then clear _latestUnfiltered and update present
// if filtering an action, merely update the present
const nextState = {
...history,
present: res
Expand Down

0 comments on commit f5be004

Please sign in to comment.