How to use GraphQL in your Redux app

Vuong Duong
firstly blog
Published in
1 min readSep 20, 2018
o93 2390 38844

Fetching and managing data in Redux requires too much work. As Sashko Stubailo points out:

Unfortunately the patterns for asynchronously loading server data in a Redux app aren’t as well established, and often involve using external helper libraries, like redux-saga. You need to write custom code to call your server endpoints, interpret the data, normalize it, and insert it into the store — all while keeping track of various error and loading states.

By the end of this tutorial, you will have learned how to solve this problem by letting the Apollo Client fetch and manage data for you. You will no longer have to write multiple action dispatchers, reducers, and normalizers to fetch and sync data between your front end and your back end.

dsafasdff asdfsadf

--

--