4 ms·
Turns out apollo (graphql client for react) is doing more or less redux's work. I planned on using both at first when I started migrating to graphql, but quick
by k_ 8y ago
Turns out apollo (graphql client for react) is doing more or less redux's work.
I planned on using both at first when I started migrating to graphql, but quickly saw that indeed redux was becoming redundant when we use apollo. Especially since they added local state management [1].
[1]: https://www.apollographql.com/docs/react/essentials/local-state.html https://www.apollographql.com/docs/react/essentials/local-st...
- disiplus 8y agobut you could do this anyway without redux, i had a simple CRUD react app that did its own requests on componentmount and thats all, you dont need redux allways, maybe people are just starting to discover that.
- maaaats 8y agoYeah, often you don't need it. But in this case, what if that state was to be used different places in your app? (Excluding direct descendants where you could easily pass it as props)