Hacker News new | ask | show | jobs
by andreamazz 4132 days 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-...
1 comments

What 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 :)

I 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/

Exactly, I was referring to the singleton stores and dispatcher