Skip to content

Commit

Permalink
removed distinctState() filter (reduxjs#3450)
Browse files Browse the repository at this point in the history
distinctState() filter, which is now deprecated, is auto applied.

Former-commit-id: b7ad394
Former-commit-id: cac077d
  • Loading branch information
deanban authored and timdorr committed Jun 17, 2019
1 parent 6243265 commit ed82e2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/todos-with-undo/src/reducers/todos.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import undoable, { distinctState } from 'redux-undo'
import undoable from 'redux-undo'

const todo = (state, action) => {
switch (action.type) {
Expand Down Expand Up @@ -38,6 +38,6 @@ const todos = (state = [], action) => {
}
}

const undoableTodos = undoable(todos, { filter: distinctState() })
const undoableTodos = undoable(todos)

export default undoableTodos

0 comments on commit ed82e2c

Please sign in to comment.