-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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: check for dirty pages when nodes are deleted (so queries are ru-run and data is removed from pages) #11831
Changes from all commits
6d57b16
c3b9ec9
eb16fd8
a9d9a2e
7ffe5c7
5b5417f
190625f
890fb36
dcfc73c
863acf1
516b42c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,7 +157,11 @@ module.exports = async (api, args = {}, pluginSource) => | |
}) | ||
|
||
// Check that the API is documented. | ||
if (!apiList[api]) { | ||
// "FAKE_API_CALL" is used when code needs to trigger something | ||
// to happen once the the API queue is empty. Ideally of course | ||
// we'd have an API (returning a promise) for that. But this | ||
// works nicely in the meantime. | ||
if (!apiList[api] && api !== `FAKE_API_CALL`) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't see There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh lemme add a comment on this. It's a bit weird :-D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I missed https://github.com/gatsbyjs/gatsby/pull/11831/files#diff-deed9a141e906a882e5f3b2d2c4e21aeR19 my bad :) it makes sense |
||
reporter.panic(`api: "${api}" is not a valid Gatsby api`) | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new Date().toJSON()
=> "2019-02-20T10:47:41.468Z"Date.now()
=> 1550659670910I don't know how page.updatedAt looks so no idea if this is good or bad 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah... for some reason I made a few types (like page) use unix timestamps instead of iso8601 :-(
So this check was failing before.