dimanche 30 novembre 2014

Implementing Facebook Flux's Dispatcher


I am getting into Facebook's Flux architecture, which is a client-side MVC variant based on React.js.


It features a dispatcher, a single object that mandates unidirectional data-flow, as opposed to the two-way binding which is common in other MV* libraries, AngularJS being a notable example.


The details and explanations provided on that page are clear to me - have been reading it through in the last couple of days, letting it all sink in.


However, the dispatcher example provided is quite lacking (they acknowledge this themselves: "A problem arises if we create circular dependencies... We'll need a more robust dispatcher that flags these circular dependencies... and this is not easily accomplished with promises. In the future we hope to cover how to build a more robust dispatcher and how to initialize, update, and save the state of the application with persistent data, like a web service API.").


This is what I've come here for. I am looking for some articles, examples, or libraries (javascript) that fall into that description of a dispatcher with extended ability to manage data in states, persistency, and resolve handle circular dependencies.





Aucun commentaire:

Enregistrer un commentaire