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
This approach is more robust because compiler warns about missing return value and its type.
However, it is difficult because async func can't return value immediately.
Currently,
Action
needs to calldispatcher.dispatch
for async func.For example.
It has some problem.
There is possibilities which developer forgets call
dispatch
.And I want to hide dispatcher instance from action.
This is my ideal.
This approach is more robust because compiler warns about missing return value and its type.
However, it is difficult because async func can't return value immediately.
My idea is this.
So, divide action to normal and async.
Action
can return payload immediately.AsyncAction
action uses Promise like as PromiseKitAny idea?
The text was updated successfully, but these errors were encountered: