From f140ae9b8eae18308f0800390a15a7b60fccdb81 Mon Sep 17 00:00:00 2001 From: Lennart Date: Fri, 9 Apr 2021 10:01:02 +0200 Subject: [PATCH] chore(docs): Add link to perf implications siteContext --- docs/docs/scaling-issues.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/scaling-issues.md b/docs/docs/scaling-issues.md index c71e67619afab..3c3371578b257 100644 --- a/docs/docs/scaling-issues.md +++ b/docs/docs/scaling-issues.md @@ -59,7 +59,7 @@ Note: the application of these techniques should be considered analogous to appl ### Switch off type inference for `SitePage.context` -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: +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: ```js // gatsby-node.js