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

feat(gatsby): split up head & page component loading #36545

Merged
merged 2 commits into from
Sep 7, 2022

Conversation

wardpeet
Copy link
Contributor

@wardpeet wardpeet commented Sep 5, 2022

Description

Allow our production loader to load head & page component separately

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Sep 5, 2022
@wardpeet wardpeet changed the title feat(gatsby): split up phead & page component loading" feat(gatsby): split up head & page component loading Sep 5, 2022
const loadComponent = chunkName => {
if (!asyncRequires.components[chunkName]) {
const loadComponent = (chunkName, exportType = `components`) => {
if (!global.hasPartialHydration) {
Copy link
Contributor

@pieh pieh Sep 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is global.hasPartialHydration being set somewhere? I don't see it anywhere in existing code in master (yet)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be available with partialHydration #36485

@LekoArts LekoArts added topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Sep 6, 2022
@tyhopp tyhopp merged commit 42e241c into master Sep 7, 2022
@tyhopp tyhopp deleted the feat/partial-hydration-head branch September 7, 2022 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants