News for hackers. Stuff that matters.
Re:Flux Comparison by Example by pluma on Tuesday February 03, 2015 @08:23AM (#8990139)
The singletons are only problematic if you need to interact with them asynchronously. `React.renderToString` is synchronous, so there's no reason stores have to be async.

Shameless plug: Fynx[0] is mostly synchronous, for example.

[0]: https://www.npmjs.com/package/fynx

Re:Flux Comparison by Example by bryanlarsen on Tuesday February 03, 2015 @08:28AM (#8990167)
Fynx is what I'm using in my project. It'd be nice to get it added to the comparison.
Re:Flux Comparison by Example by d4n3 on Tuesday February 03, 2015 @02:10PM (#8992504)
but how would you deal with async data fetches then?

I want to have the same routing and data fetching logic both on the client and on the server, and for that I would need to have stores that are independent for different incoming HTTP requests.

Re:Flux Comparison by Example by bryanlarsen on Wednesday February 04, 2015 @01:29PM (#8998624)
I'm not sure how you're supposed to do it, but that hasn't been a problem for me. I set up two actions: load and init. load starts a request and init sets the data in the store.
Re:Flux Comparison by Example by ksmtk on Tuesday February 03, 2015 @08:53AM (#8990267)
Stores should be definitely sync in any implementation!