-
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 gatsby-transformer-screenshot #6390
Conversation
Deploy preview for using-drupal ready! Built with commit 032aced |
Deploy preview for gatsbygram ready! Built with commit 032aced |
@@ -16,29 +16,30 @@ exports.onPreBootstrap = ( | |||
pluginOptions | |||
) => { | |||
const { createNode, touchNode } = actions | |||
const screenshotNodes = Array.from(store.getState().nodes.values()).filter( |
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.
Array.from(store.getState().nodes.values())
could be replaced by getNodes
I think?
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.
Good shout, thanks. Hmmm... we should add docs for getNodes()
I guess?
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, about all helper functions that get passed to plugins actually
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.
👍
Update
gatsby-transformer-screenshot
following #6226