diff --git a/examples/todos-with-undo/src/reducers/todos.js b/examples/todos-with-undo/src/reducers/todos.js index 52751891fb..5a1b6ff973 100644 --- a/examples/todos-with-undo/src/reducers/todos.js +++ b/examples/todos-with-undo/src/reducers/todos.js @@ -1,4 +1,4 @@ -import undoable, { includeAction } from 'redux-undo' +import undoable, { distinctState } from 'redux-undo' const todo = (state, action) => { switch (action.type) { @@ -38,6 +38,6 @@ const todos = (state = [], action) => { } } -const undoableTodos = undoable(todos, { filter: includeAction(['ADD_TODO', 'TOGGLE_TODO']) }) +const undoableTodos = undoable(todos, { filter: distinctState() }) export default undoableTodos