egghead
Search
Search
Log In
Search
Search
Manage State in React Apps with Apollo Client and GraphQL by Rares Matei
Perform GraphQL queries using Apollo's useQuery hook
Why have a client-side GraphQL cache?
Use fetch policies in Apollo to keep your queries fast and fresh with the latest data
Handle loading states for your GraphQL queries
Handle GraphQL query error states using Apollo
Use the RetryLink in Apollo to retry queries after an error
Make GraphQL mutations with the useMutation Apollo hook
Understand how Apollo stores data in its cache
Update the local cache automatically when making mutations
Optimise queries to ensure all entities are normalised in the Apollo cache
Handle item deletions in Apollo using refetchQueries
Manually modify the cache to remove deleted items
Use optimistic updates to build UIs that react immediately to user actions
Evict deleted items from the Apollo cache
Use fetchMore and merge field policies to dynamically load more items into a list
Use "read" field policies to query local client state
Use the readField helper to get the ID of items in read field policies
Use reactive variables to hold local client state in Apollo's cache
Implement cache redirect policies to avoid slow network requests for new queries
Incrementally migrate from REST to GraphQL using the RestLink
Keep queries in sync with the backend by polling for new data
Subscribe to immediate live updates from your server
Append GraphQL subscription updates to existing queries
Provide quick app start-up times by syncing the Apollo cache with local storage
egghead
System