5 ms·
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
by peterjmag 12y 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 https://github.com/spoike/refluxjs
[2] https://reactjsnews.com/the-state-of-flux/ https://reactjsnews.com/the-state-of-flux/
- mjohn 12y agoI 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://baconjs.github.io/
- bsimpson 12y agoI'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.
- kylemathews 12y agoI've been using a "FilteredConnect" mixin that I wrote that's solved the "CurrentThing" store problem nicely.
- bsimpson 12y agoInteresting. Link?
- kylemathews 12y agoStill private — need to create a pull request against Reflux.
- lumpypua 12y agoI'd be very interested in a good approach to this as well.
- rok3 12y agoI'm leading a mid-sized project that is using RefluxJS. We're very happy with it.
- sun_zoo 12y agohttps://github.com/kjda/ReactFlux 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 https://github.com/rblakeley/fifa-heroes
- goatslacker 12y agoI started with reflux but wanted something that was actual flux. So I ended up with https://github.com/goatslacker/alt 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 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.
- robertfw 12y agoI've been using Fluxxor http://fluxxor.com/ 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.