https://github.com/sebinsua/redux-saga-helpers … <- I wrote a library for users of redux-saga. Should help with error handling.
This is what you got: dispatch(fnAction(payload)) // ... dispatch(fnActionSuccess(result)) dispatch(fnActionFail(error)) // Inject result.
-
-
Defaults require you to hand-write objects that describe function calls or write functions that create objects that describe function calls.
-
/w Sagas: const actionDescribingFunctionCall = call(fn, payload) const result = yield actionDescribingFunctionCall fnActionSuccess(result)
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.