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 gatsby-transformer-screenshot #6390

Merged
merged 2 commits into from
Jul 11, 2018

Conversation

m-allanson
Copy link
Contributor

Update gatsby-transformer-screenshot following #6226

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jul 11, 2018

Deploy preview for using-drupal ready!

Built with commit 032aced

https://deploy-preview-6390--using-drupal.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented Jul 11, 2018

Deploy preview for gatsbygram ready!

Built with commit 032aced

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

@@ -16,29 +16,30 @@ exports.onPreBootstrap = (
pluginOptions
) => {
const { createNode, touchNode } = actions
const screenshotNodes = Array.from(store.getState().nodes.values()).filter(
Copy link
Contributor

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?

Copy link
Contributor Author

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?

Copy link
Contributor

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

Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

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

👍

@m-allanson m-allanson merged commit 44b2dc2 into master Jul 11, 2018
@m-allanson m-allanson deleted the screenshot-transformer-hulksmash-update branch July 11, 2018 21:19
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.

4 participants