1. 4
    Handle loading states for your GraphQL queries
    1m 54s

Handle loading states for your GraphQL queries

Share this video with your friends

Send Tweet

Apollo gives us a simple loading flag from the useQuery hook, which we can use to display a loading spinner. Whenever the request finishes, Apollo will re-render our component so that it can display the fresh data.