Review
So far, I have found that the best tool to use for state management is the Apollo Client. It is easy to use on the frontend and supports new React features such as hooks. It also removes the need to do any state management because the Apollo Cache, does all the dirty work for you. The main downsides of Apollo are the difficulty manually updating the cache and setting up the Apollo Client with Next.js. Thankfully, Apollo has some great documentation showing how to update the cache and Next.js provides an example of how to use the Apollo Client with SSR.
0 views0
Comments