Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upThe view is only updated as per the latest Model when the runtime is passed Cmd.none... #796
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Dec 23, 2016
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
process-bot
commented
Dec 23, 2016
|
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
Dec 23, 2016
Contributor
This is something for discussion on the mailing list, instead of the GitHub issue tracker here. (To understand why, have a look at what process-bot points to above.)
Hence, I'm closing this here.
|
This is something for discussion on the mailing list, instead of the GitHub issue tracker here. (To understand why, have a look at what process-bot points to above.) Hence, I'm closing this here. |
GordonBGood commentedDec 23, 2016
Sometimes one might want intermediate updates, as as the following sequence of tasks:
Currently, the results and the elapsed time are only displayed at the end (when Cmd.none is sent to the runtime) even though the model is updated at every step, which should cause changes to the view model.
It would be nice if the view model could be updated at intermediate steps, so that one could do such things as disable the Start Button, update status ("Running" instead of "Waiting for Click"), clearing text fields, etc.
This might be easily accomplished by adding a Cmd.update that could be batched with other commands on any given intermediate step of the sequence where the view update should be triggered (or doing special processing for Cmd.none when it is one of the batched Cmd's to treat it like a request for view update - doesn't currently work; it currently only seems to update the view when there is nothing else to do).