3 ms·
I started using the Apollo Universal Starter Kit.[0] They were using both Redux with Apollo GraphQL. This really bothered me because there were two stores. Apol
by zappo2938 9y ago
I started using the Apollo Universal Starter Kit.[0] They were using both Redux with Apollo GraphQL. This really bothered me because there were two stores. Apollo 2 doesn't use Redux for the cache anymore. I went ahead and first pulled out the Redux dependency using Apollo Link State.[1][2] Then I went ahead and removed the Redux-Form dependency using Formik[3] instead.[4] The project maintainers thought it was a good idea and removed Redux and Redux-Form dependencies from all the packages. If you are looking for a way to not use Redux with Apollo, it has been solved. Although Apollo Link State requires some more code, it does normalize the data which means selectors are not needed which is a nice way to think about the data.
[0] https://github.com/sysgears/apollo-universal-starter-kit https://github.com/sysgears/apollo-universal-starter-kit
[1] https://github.com/apollographql/apollo-link-state https://github.com/apollographql/apollo-link-state
[2] https://github.com/adam-s/apollo-universal-starter-kit/commit/0a4109ec4fbf7d6cc1e5515f67284c9e1223b429 https://github.com/adam-s/apollo-universal-starter-kit/commi...
[3] https://github.com/jaredpalmer/formik https://github.com/jaredpalmer/formik
[4] https://github.com/adam-s/apollo-universal-starter-kit/commit/bf940b15b1c1c3bbe7c9e1758f347c96ffd61aa3 https://github.com/adam-s/apollo-universal-starter-kit/commi...