Redocer
Pronounced: reducer
A custom reducer enhancer that returns a reducer that handles undo and redo actions.
API
import makeRedocer from 'redocer' { ... }; let redoable = ; // Regular actions pass through to the original reducer// if you have already called the reducer with a custom action// then you can call it with a `redo` action, returning the previous state// Once you have redone a change, you can call the reducer with `undo`