Building a GraphQL store from first principles
Blog post from Apollo
Sashko Stubailo explores two potential approaches for caching GraphQL results on the client: storing the whole query result or just objects and fields. Storing the whole query result can reduce data loading, but refetching after mutations and optimistic UI might be challenging. On the other hand, caching objects and fields offers a more flexible solution, allowing for easier integration of new queries and optimistic updates. This approach is similar to Relay's store and Redux's recommendation for normalized stores. The author is working on implementing this concept using a Redux store, aiming to make it easy to understand and use.
No tracked trend matches for this post yet.
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.