Hacker News new | ask | show | jobs
by peterjmag 4173 days ago
Out of curiosity, for those of you building stuff with Flux: Which library do you use? Or do you just use your own implementation?

We recently went with Reflux[1] for our first big React app after reading about it here[2], and I've been pretty happy with it so far.

[1] https://github.com/spoike/refluxjs

[2] https://reactjsnews.com/the-state-of-flux/

6 comments

I've been using Fluxxor http://fluxxor.com/ for a relatively large application. Has been working well! When I started the project the flux concept was still very, very new and there were not many implementations. It took care of the basics and has gotten out of my way. I'm looking forward to trying marty out on a new app.
I started with reflux but wanted something that was actual flux. So I ended up with

https://github.com/goatslacker/alt

which looks a bit like reflux in terms of terseness but it adds the ability to have snapshots and rollbacks, isomorphism, and it plays real well with ES6.

There's a few of the flux examples that compare flux to alt in the repo. And there are some good isomorphic examples in here https://github.com/goatslacker/iso/tree/master/examples

I'll be posting a write-up of all this pretty soon.

If you like reflux you'll like alt.

I'm using Reflux for now, though I'm tempted to switch to something more FRP like Bacon, f, or RxJS. I find that I end up making stores for both AllThings and CurrentThing, and it should be easier to express that relationship with FRP.
I've been using a "FilteredConnect" mixin that I wrote that's solved the "CurrentThing" store problem nicely.
I'd be very interested in a good approach to this as well.
Interesting. Link?
Still private — need to create a pull request against Reflux.
I really like Reflux as well. In a recent project I used Bacon.js[1] to create my own implementation that ended up looking similar to Reflux.

The project involved asynchronous requests triggered by the actions, and transforming & aggregating the returned data. Compared to Reflux, Bacon made it very easy to do this by composing small functions that are applied sequentially to a stream of actions.

[1] https://baconjs.github.io/

https://github.com/kjda/ReactFlux is really approachable, but not an entire framework. It has been a great starting point for what will become a fantasy draft app: https://github.com/rblakeley/fifa-heroes
I'm leading a mid-sized project that is using RefluxJS. We're very happy with it.