Skip to content

Conversation

@pieh
Copy link
Contributor

@pieh pieh commented Jun 19, 2018

First commit cleans up what seems to be code from master merge that shouldn't be there - it would try to fetch resources if they were already fetched and stored in pathScriptsCache map)

Second commit makes sure to not try to fetch same .json file multiple times

Issues this PR fixes were mentioned in #5109 (comment)

@gatsbybot
Copy link
Collaborator

Deploy preview for using-drupal ready!

Built with commit 341f6d5

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

@gatsbybot
Copy link
Collaborator

Deploy preview for gatsbygram ready!

Built with commit 341f6d5

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

Copy link
Contributor

@m-allanson m-allanson left a comment

Choose a reason for hiding this comment

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

👍

@KyleAMathews KyleAMathews merged commit 9900689 into gatsbyjs:master Jun 19, 2018
@KyleAMathews
Copy link
Contributor

👍

KyleAMathews pushed a commit that referenced this pull request Jun 21, 2018
* cleanup duplicated getResourceModule calls in loader.js

* instead of storing just result of fetching json data, store promise

prevents creating multiple requests for same file
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