3 ms·
I'm currently in process of rewriting our work application from AngularJS to Redux. The downside with redux is that simpler things can take a bit more code tha
by TheAceOfHearts 11y ago
I'm currently in process of rewriting our work application from AngularJS to Redux.
The downside with redux is that simpler things can take a bit more code than you might wish. You have to add an action handler / reducer, action creator, etc. However, it's generally very easy to extend previously written code, and it's very easy to reason about the data / logic flow.
Another pitfall with redux is that it doesn't provide any help when you have to react to changes. A few days ago in reddit I wrote a small example explaining what I mean [0].
You might be interested in checking out relay-local-schema [1], it looks promising for experimenting with GraphQL and Relay.
[0] https://www.reddit.com/r/javascript/comments/3u0167/getting_started_with_redux_a_free_30part_video/cxbg9s4 https://www.reddit.com/r/javascript/comments/3u0167/getting_...
[1] https://github.com/relay-tools/relay-local-schema https://github.com/relay-tools/relay-local-schema