We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1360c91 commit 35dea47Copy full SHA for 35dea47
README.md
@@ -41,11 +41,11 @@ from the original action.
41
```
42
...
43
{
44
- [ADD_TODO]: (prevState, nextState, action) => {
+ [ADD_TODO]: (prevState, nextState, action, undoing) => {
45
const { value } = action.payload;
46
return attemptRemoveTodo(value);
47
},
48
- [REMOVE_TODO]: (prevState, nextState, action) => {
+ [REMOVE_TODO]: (prevState, nextState, action, undoing) => {
49
const { payload } = action;
50
const { value, done } = getTodo(prevState, payload);
51
return attemptAddTodo({ value, done, index: payload });
0 commit comments