Gatsby v5: Every Static Query loads on every page even when not required #38349
Labels
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
Reproduction Link
https://github.com/dkyuho/gatsby-monorepo-sandbox
Steps to Reproduce
Gatsby v5.11.0
yarn
to install all the packagesyarn prod
to start production serverhttp://localhost:9000/_report.html
to see the Perf ReportGatsby v4.24.0
test-gatsby-v4
yarn clean && yarn && yarn prod
to restart the server.node_modules
and try againExpected Result
Only the static queries that are being used on the page should be fetched.(Gatsby v4.24.0)
Size of requests
Actual Result
All static queries are being fetched, regardless of whether they are used or not (Gatsby v5.11.0).
Size of requests
Environment
Config Flags
The text was updated successfully, but these errors were encountered: