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.
2 parents 8193410 + 2843315 commit 2a1709aCopy full SHA for 2a1709a
README.md
@@ -93,6 +93,15 @@ handleAction('FETCH_DATA', {
93
});
94
```
95
96
+If you leave either reducer unspecified, the wrapped reducer will treat that reducer as a no-op, returning the state unchanged.
97
+
98
+```js
99
+handleAction('FETCH_DATA', {
100
+ next(state, action) {...}
101
+ // State will be unchanged in the event of an error
102
+});
103
+```
104
105
The optional third parameter specifies a default or initial state, which is used when `undefined` is passed to the reducer.
106
107
### `handleActions(reducerMap, ?defaultState)`
0 commit comments