fix(gatsby): don't ignore SOURCE_FILE_CHANGED event#30127
Merged
Conversation
ascorbic
approved these changes
Mar 9, 2021
vladar
approved these changes
Mar 9, 2021
Contributor
vladar
left a comment
There was a problem hiding this comment.
It makes perfect sense to me.
I guess the only thing that confuses me a little bit - why did we ignore SOURCE_FILE_CHANGED in the first place there? Maybe there was some edge case?
Contributor
|
I ignored it because previously we weren't using it to decide whether to recompile, we were just using it to decide whether to extract queries. As we were about to extract queries anyway, we didn't need to add a flag to say to do it |
pieh
added a commit
that referenced
this pull request
Mar 9, 2021
(cherry picked from commit f6d1c09)
vladar
pushed a commit
that referenced
this pull request
Mar 9, 2021
(cherry picked from commit f6d1c09)
vladar
pushed a commit
that referenced
this pull request
Mar 9, 2021
Contributor
|
Published in |
pieh
added a commit
that referenced
this pull request
Mar 9, 2021
This was referenced Mar 9, 2021
This was referenced Mar 15, 2021
This was referenced Jul 16, 2021
raffishquartan
pushed a commit
to raffishquartan/gatsby
that referenced
this pull request
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
We are currently ignoring
SOURCE_FILE_CHANGEDevent inreloadingDatastate. This seems to cause problems:If we are in this state and we ignore that event, but
gatsby/packages/gatsby/src/services/start-webpack-server.ts
Lines 47 to 55 in a8f7101
will mark webpack recompilation to run but it won't (until something else potentially in the future trigger another recompilation).
This might result in at least some runs getting stuck -
GATSBY_DIAGNOSTIC_STUCK_STATUS_TIMEOUTreporting things like:This might also be source of at least some of double save issues