Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Learn Apollo Client Hooks

via egghead.io

Overview

Introduced in React 16.8, Hooks are a new way to write stateful components while avoiding the pitfalls of classes.
As a result, GraphQL developers everywhere wanted to use them for their Apollo Client components, instead of relying on render props pattern. In August of 2019 things have changed and Apollo Client now has official support for React hooks, by providing useQuery, useLazyQuery, useMutation and useSubscription hooks.
If you'd like to learn how to use them, this playlist is for you!

Syllabus

  • Fetch data with Apollo GraphQL useQuery hook
  • Automatically poll data from GraphQL API with Apollo Client useQuery hook
  • Use useLazyQuery to manually execute a query with Apollo React Hooks
  • Use useMutation hook to trigger GraphQL mutations with Apollo React Hooks

Taught by

Tomasz Łakomy

Reviews

4.3 rating at egghead.io based on 22 ratings

Start your review of Learn Apollo Client Hooks

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.