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 page hot loading fixes #3255 #3256

Merged
merged 1 commit into from
Dec 17, 2017
Merged

Fix page hot loading fixes #3255 #3256

merged 1 commit into from
Dec 17, 2017

Conversation

KyleAMathews
Copy link
Contributor

@KyleAMathews KyleAMathews commented Dec 17, 2017

In #3237 I added CREATE_PAGE_END as cleaner way to know when pages are finished being added and stopped listening to CREATE_PAGE as it's really noisy and sometimes leads to extra writes.

But I forgot that CREATE_PAGE_END won't always be called as plugins implementing createPagesStagefully can create pages whenever so we still need to listen to CREATE_PAGES.

This PR restores listening to CREATE_PAGE but only after bootstrap is finished.

@ghost ghost assigned KyleAMathews Dec 17, 2017
@ghost ghost added the review label Dec 17, 2017
@gatsbybot
Copy link
Collaborator

Deploy preview ready!

Built with commit bce8b30

https://deploy-preview-3256--gatsbygram.netlify.com

@KyleAMathews
Copy link
Contributor Author

In #3237 I added CREATE_PAGE_END as cleaner way to know when pages are finished being added and stopped listening to CREATE_PAGE as it's really noisy and sometimes leads to extra writes.

But I forgot that CREATE_PAGE_END won't always be called as plugins implementing createPagesStagefully can create pages whenever so we still need to listen to CREATE_PAGES.

This PR restores listening to CREATE_PAGE but only after bootstrap is finished.

@KyleAMathews KyleAMathews merged commit fed1c97 into master Dec 17, 2017
@ghost ghost removed the review label Dec 17, 2017
@KyleAMathews KyleAMathews deleted the fix-hot-page branch December 17, 2017 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants