You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `context` property accepts an object, and we can pass in any data we want the page to be able to access.
> **NOTE:** There are a few reserved names that _cannot_ be used in `context`. They are: `path`, `matchPath`, `component`, `componentChunkName`, `pluginCreator___NODE`, and `pluginCreatorId`.
Motivation
To document this in more places than the "Why GraphQL" doc, so that people don't stumble over this issue as often.
The text was updated successfully, but these errors were encountered:
<!--
Have any questions? Check out the contributing docs at https://gatsby.dev/contribute, or
ask in this Pull Request and a Gatsby maintainer will be happy to help :)
-->
## Description
Documenting limitations with React context, as per the feedback/comments in #11787.
Closes#12423
Summary
Document some of the reserved words in React context, as requested in #11787. This page looks like a good spot for it: https://www.gatsbyjs.org/docs/creating-and-modifying-pages/
Basic example
From the PR:
Motivation
To document this in more places than the "Why GraphQL" doc, so that people don't stumble over this issue as often.
The text was updated successfully, but these errors were encountered: