August 2017
Beginner
374 pages
10h 41m
English
Although our undoable higher-order reducer works fine, it only supports very basic undo/redo behavior. For example, when we have multiple reducers that are wrapped in undoable and we trigger an undo action, all wrapped reducers do an undo operation. You may also want to include only certain actions in the undo/redo history by defining a filter function.
We could extend our higher-order reducer to accept an object of options as an argument, where we can define separate undo/redo action types and a filter function.
Read now
Unlock full access