News for hackers. Stuff that matters.
Re:Facebook Flux – Application Architecture for Building Use... by augustl on Tuesday July 29, 2014 @06:16AM (#8101459)
The main difference between Flux and MVC is the unidirectional data flow. In MVC, a controller updates a model which updates a view which again talks directly to a model that might invoke another view which again might cause a model update, and so on. In Flux, the only thing a view can do is to invoke actions on the top-level dispatcher. Furthermore, views are never partially updated, they are always re-rendered from scratch every time (like you typically do in the back-end).
Re:Facebook Flux – Application Architecture for Building Use... by voyou on Tuesday July 29, 2014 @06:33AM (#8101510)
But as I said, MVC already has unidirectional data flow. An MVC View doesn't make changes to the Model, so can't lead to cascading updates of other Views.