Lesson
Pass Custom Data to Gatsby Pages
We can pass custom data to our Gatsby pages by overriding the onCreatePage function and using its context object. This is really useful when you want to provide custom data to GraphQL queries, or your page components.
- Duration
- 2 min
- Access
- Free
- Transcript
- Needs source
We can pass custom data to our Gatsby pages by overriding the onCreatePage function and using its context object. This is really useful when you want to provide custom data to GraphQL queries, or your page components.