Skip to content

amberleyromo/gatsby-client-data-fetching

Repository files navigation

Client Data Fetching in Gatsby

There are three main ways to get data into a Gatsby site.

1. At build time using the Gatsby data layer.

Learn more about using the Gatsby data layer in the docs and main tutorial.

2. At build time outside of the data layer, using unstructured data.

Learn more about using unstructured data in Gatsby.

3. At run time fetching from the client.

This will be what our example focuses on. In the context of Gatsby, this is specifically referring to data requested at run time, independent of the Gatsby data layer.

Gatsby sites are React apps. React apps are dynamic. Therefore, Gatsby is dynamic. You can pick and choose from these methods to find a balance that works for you. (Note: When considering, it's worth being aware of the tradeoffs of foregoing the Gatsby data layer).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published