You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Uses FSA's isError() to check for failed actions
- `success()` and `error()` have been renamed to `next()` and
`throw()`, which are inspired by the ES6 generator interface.
Wraps a reducer so that only handles Flux Standard Actions of a certain type.
41
41
42
-
If a single reducer is passed, it is used to handle both successful and failed actions. You can use this form if you know a certain action will always be a success, like the increment example above.
42
+
If a single reducer is passed, it is used to handle both normal actions and failed actions. (A failed action is analogous to a rejected promise.) You can use this form if you know a certain type of action will never fail, like the increment example above.
43
43
44
-
Otherwise, you can specify reducers for `success` and `error`:
44
+
Otherwise, you can specify separate reducers for `next()` and `throw()`. This API is inspired by the ES6 generator interface.
0 commit comments