Hacker News new | ask | show | jobs
by btipling 4302 days ago
At floobits we use "actions" in addition to model events for our flux like implementation. Views trigger usually actions, modifying models triggers events on the model. Views in themselves do not usually trigger model updates.

So think about opening up a file in a web editor, that's an action. Many things might care about when a file is opened. The tab UI, maybe a log, other users connected to your session. Sometimes views correlate well to model updates, like a form, but many times they do not in which case a different event type can be useful.

1 comments

This makes sense. I've thought for a while that separating commands and events was the right thing to do, even if they use the same distribution mechanism.