From 00f0b483bc7ba2e26a45b5c52fe7e0addd70e4df Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Wed, 8 May 2019 12:45:14 -0400 Subject: [PATCH] Update undo example filter Fixes #3422 Closes #3423 Former-commit-id: afd96d8380d3993fc054dc93be976e1933766ee9 --- examples/todos-with-undo/src/reducers/todos.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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