-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
there is something fishy in the chain saga, service, helper.
-
services are in charge of:
- formatting data to be passed to an helper,
- calling helpers,
- formatting returned data from that helper.
-
helpers are generally based promise,
-
this is exactly the same for services.
the problem is:
- what if an helper reject a promise?
- how is that handled in services?
PS:
Be aware of what is the return value of .then(): resolve or failure.
Considering the returned value of .then() in both case, we have done something wrong here!
🇿🇲