https://github.com/sebinsua/redux-saga-helpers … <- I wrote a library for users of redux-saga. Should help with error handling.
-
-
-
Replying to @sebinsua
This is what you wanted: const [ result, error ] = fn(payload)
1 reply 0 retweets 0 likes -
Replying to @sebinsua
This is what you got: dispatch(fnAction(payload)) // ... dispatch(fnActionSuccess(result)) dispatch(fnActionFail(error)) // Inject result.
1 reply 0 retweets 0 likes -
Replying to @sebinsua
Defaults require you to hand-write objects that describe function calls or write functions that create objects that describe function calls.
1 reply 0 retweets 0 likes -
Replying to @sebinsua
/w Sagas: const actionDescribingFunctionCall = call(fn, payload) const result = yield actionDescribingFunctionCall fnActionSuccess(result)
1 reply 0 retweets 0 likes
It's boilerplate syntax to make a function call, potentially wait, potentially transform, and finally to place data into a global store.
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.