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

    Refetch Data with the Apollo Query Component either Manually or on Timed Intervals

    reactReact
    ^16.4.2
    graphqlGraphQL
    ^14.0.2

    In this lesson we will first explore how to manually refetch data for an already executed query to receive the latest state of our data.

    Later we use polling to refetch the latest state on a timed interval. Polling can be a simple and effective tool to provide an almost real-time experience without the overhead of setting up a WebSocket solution.