1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Manage Local State using Apollo by extending the GraphQL Schema on the Client

    reactReact
    ^16.4.2
    graphqlGraphQL
    ^14.0.2

    With the introduction of apollo-link-state Apollo for the first time introduced a way to manage local state through GraphQL queries and mutations. This can be achieved using the @client directive.

    In this lesson we will leverage this feature to keep track of starred recipes and store the information in the localStorage.