Skip to content

Commit 172cf4d

Browse files
authored
chore(docs): Add link to perf implications siteContext (#30778)
1 parent 4336d04 commit 172cf4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/scaling-issues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Note: the application of these techniques should be considered analogous to appl
5959

6060
### Switch off type inference for `SitePage.context`
6161

62-
When using the `createPages` API to pass large amounts of data to pages via `context` (which is generally not recommended), Gatsby's type inference can become slow. In most cases, it is not actually necessary to include the `SitePage.context` field in the GraphQL schema, so switching off type inference for the `SitePage` type should be safe:
62+
When using the `createPages` API to pass large amounts of data to pages via `context` (which is generally [not recommended](/docs/creating-and-modifying-pages#performance-implications)), Gatsby's type inference can become slow. In most cases, it is not actually necessary to include the `SitePage.context` field in the GraphQL schema, so switching off type inference for the `SitePage` type should be safe:
6363

6464
```js
6565
// gatsby-node.js

0 commit comments

Comments
 (0)