Combine Build Time and Client Runtime Data in a Gatsby App

Share this video with your friends

Send Tweet

Gatsby is capable of generating content at build time as well as making calls to external services at runtime, you can make hybrid pages that take advantage of the benefits of static content as well as dynamic content. You can gather data ahead of time while the site builds so that when a user loads your page the data is already available. Then, for data that is of a more dynamic nature, you can request data from another service like an API using the classic React way

in this lesson, you will learn how to load a chunk of the pokemon data at build time and then load more at client runtime when the app is running