3 ms·
It's always nice to read a writeup on Flux. I would love to hear more about possible isomorphic implementation of the architecture though. Right now besides F
by andreamazz 12y ago
It's always nice to read a writeup on Flux.
I would love to hear more about possible isomorphic implementation of the architecture though. Right now besides Fluxible the architecture doesn't play well with server side rendering.
By the way, shameless plug, I wrote an article on Flux (backed by a Rails API) a while ago, if you're interested on the matter: http://fancypixel.github.io/blog/2015/01/28/react-plus-flux-backed-by-rails-api/ http://fancypixel.github.io/blog/2015/01/28/react-plus-flux-...
- fizzbatter 12y agoWhat specifically do you mean when you say that it doesn't play nice with serverside? I wrote my own Flux implementation (back when it was first announced, and there were no/limited libraries for it), and i don't recall having a problem with my implementations. I probably broke a few rules though, hard to say. I'd be curious to hear your experiences with it :)
- Bockit 12y agoI can't speak for the OP, only my experience here. The docs on flux[1] recommend singletons for the dispatcher and stores. If your library is following that recommendation then things start breaking in a server-side environment as multiple requests start hitting, especially in parallel with asynchronous data retrieval. [1]: https://facebook.github.io/flux/ https://facebook.github.io/flux/
- andreamazz 12y agoExactly, I was referring to the singleton stores and dispatcher