Live data from Hacker News

Application Architecture with React: Rethinking Flux

dialelo.github.io

1–10 of 53 posts

Re: Application Architecture with React: Rethinking Flux

#5
> Om solves this problem with an abstraction called Cursor, which lets us focus on a path of the global atom and offer the same API as atoms. This allows views to treat the substructure as their data source and even modify it with the same operations as the Atom. I wrote a simple implementation of this concept for using it with atoms and immutable data.

FWIW Om Next moves away from cursors and towards something closer to GraphQL/Relay queries.

Re: Application Architecture with React: Rethinking Flux

#6
post #4
post #2

With each next article about React (and more generally javascript) it's more apparent that the final result is a mongo/rethink like db in the front-end with a transparent sync to the server

so, Meteor?

This front-end db should be separate of the UI/navigation. So, not Meteor

Re: Application Architecture with React: Rethinking Flux

#9
Always good to see alternatives to "Flux classic" [1].

We have just started using Redux [2] with ImmutableJS. It's a nice way of expressing how different actions mutate the store, but I do feel like there's some leaky abstractions in there - e.g. ImmutableJS is usually used for performance reasons, yet you see your entire app filled with getter boilerplate to get the data from the immutable structures.

I have to say I don't quite see the difference between CSP used here and normal eventemitter style code. Can someone explain the difference?

[1] https://github.com/facebook/flux

[2] https://github.com/rackt/redux

Post reply on HN