1. 21
    Keep queries in sync with the backend by polling for new data
    2m 53s

Keep queries in sync with the backend by polling for new data

Share this video with your friends

Send Tweet

In this lesson, we'll look at adding the pollInterval option when making queries. This instructs Apollo to continuously poll the backend and check for changes. We'll also explore some of the pitfalls of this approach, and how we might want to use a larger poll interval, and apply it on queries that do not return large chunks of data.