Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby): add componentChunkName to components list so don't need to loop over pages #31547

Merged
merged 5 commits into from
May 25, 2021

Conversation

KyleAMathews
Copy link
Contributor

@KyleAMathews KyleAMathews commented May 22, 2021

This helps gatsby-plugin-gatsby-cloud avoid looping over all pages to get componentChunkNames. This is slow plus it caused a Maximum call stack size exceeded error for sites with 100k+ pages.

Fixes #31545

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 22, 2021
@KyleAMathews KyleAMathews added type: bug An issue or pull request relating to a bug in Gatsby and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels May 23, 2021
@KyleAMathews KyleAMathews merged commit 783b937 into master May 25, 2021
@KyleAMathews KyleAMathews deleted the call-stack branch May 25, 2021 16:22
LekoArts pushed a commit that referenced this pull request May 27, 2021
…to loop over pages (#31547)

* fix(gatsby): add componentChunkName to components list so don't need to loop over pages

* fix type

* fix tests

* more fixes

* Guard against null values

(cherry picked from commit 783b937)
LekoArts pushed a commit that referenced this pull request May 27, 2021
…to loop over pages (#31547) (#31606)

* fix(gatsby): add componentChunkName to components list so don't need to loop over pages

* fix type

* fix tests

* more fixes

* Guard against null values

(cherry picked from commit 783b937)

Co-authored-by: Kyle Mathews <[email protected]>
@LekoArts
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[gatsby-plugin-gatsby-cloud] buildHeadersProgram: Maximum call stack size exceeded
3 participants