Is there a way to make Task.perform produce a batched "Cmd msg" on success 
(or failure, for that matter)? I've got a case where, on success, I want to 
send out more than one Msg, but because the success handler for 
Task.perform can only generate one msg this isn't straightforward.

What I'm doing now is creating an intermediate msg from the success 
handler. When my update function handles this intermediate msg, it is then 
able to generate the batched Cmd of two msgs that I want. This seems to 
work well, but it feels like pattern that only exists because of 
Task.perform's design.

So, is there a better way? Am I missing something that would let me remove 
this intermediate message, or is that just the way things have to work?

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to