illustration for Manage State in React Apps with Apollo Client and GraphQL
pro

Manage State in React Apps with Apollo Client and GraphQL

Instructor

Rares Matei

1h 54m closed-captioning
·
24 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.8
111
people completed
Published 3 years ago
|
Updated 3 years ago

At the core of a good client-side GraphQL library is a cache. The cache is very important for improving the efficiency of your data retrieval and providing your users with a clean user experience.

In this course, we're going to see how Apollo's powerful cache helps easily solve complex UI problems, such as pagination, handling loading and error states, optimistic updates, and minimizing network requests.

We'll start from the basics, and look at how to make queries and mutations, but then we'll look at how the cache is behind most of Apollo's immediate benefits. We'll explore in-depth how it works, how it stores data, and how we can manually modify it manually for advanced scenarios.

Even if your backend doesn't fully support GraphQL yet, we'll look at how to write GraphQL queries in your components that retrieve local client state under the hood - or that can even make REST API calls.

What you'll learn:

  • Explore how to handle errors elegantly and watch out for edge cases
  • Understand how to store client-side state in the Apollo cache and why it's useful
  • Design apps that are resilient to slow and even occasionally offline networks

Course Content

1h 54m • 24 lessons

    You might also like these resources:

    illustration for Designing GraphQL Schemas
    Nik Graf • 62m • Course

    Through exploration and comparison, you'll come away with actionable knowledge for designing and extending schemas.

    illustration for GraphQL Query Language
    Eve Porcello • 30m • Course

    After the course, you’ll be ready to communicate with a GraphQL API regardless of server-side implementation using the GraphQL query language.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout
    Colby Fayock • 1h4m • Course

    Accept payments & sell products powered by Stripe and the best of the JAMStack.