Upgrading to 1.0
Imports
// CJS
var undoable = require("redux-undo").default;
// UMD
var undoable = window.ReduxUndo.default;import undoable from "redux-undo";distinctState() filter applied by default
distinctState() filter applied by defaultHistory API change in versions < 0.4
< 0.4{
currentState: {...currentStateHere...},
history: {
past: [...pastStatesHere...],
present: {...currentStateHere...},
future: [...futureStatesHere...]
}
}InitialState
0.X behaviour for pushing filtered state into history, and the syncFilter option
Last updated
Was this helpful?