I am just trying Sage for the first time and therefore not sure if I am using it correctly.
When running a saga, its return value looks like: {:ok, last_effect, effects}. Wouldn't it make more sense to just return {:ok, effects}. As from a consumer's point of view I do not want to know about which step was last and what it's result was.
And where would I format / post process it. Would you put a case statement right after a saga's steps or where the saga is actually called?
I am just trying Sage for the first time and therefore not sure if I am using it correctly.
When running a saga, its return value looks like:
{:ok, last_effect, effects}. Wouldn't it make more sense to just return{:ok, effects}. As from a consumer's point of view I do not want to know about which step was last and what it's result was.And where would I format / post process it. Would you put a case statement right after a saga's steps or where the saga is actually called?