Rocketmakers / gatsby-plugin-graphql-image

A gatsby plugin for generating file nodes from remote image URLS in GraphQL API's
2 stars 6 forks source link

activating this plugin causes createPages to be called many times #3

Open rburgst opened 4 years ago

rburgst commented 4 years ago

as soon as I activate this plugin together with gatsby-source-graphql connected to a wordpress site my main createPages method is being called like 10-15 times rather than once.

I am guessing there is an await missing somewhere.

rburgst commented 4 years ago

maybe similar issue as mentioned here? https://dev.to/byronwade/comment/mjmk

rburgst commented 4 years ago

anyone home?

rburgst commented 4 years ago

seems to be due to this: https://github.com/gatsbyjs/gatsby/issues/20083

rburgst commented 4 years ago

the correct solution was provided by @sanderploegsma and can be found here: https://github.com/gatsbyjs/gatsby/issues/20083#issuecomment-626646103 I created a sample repo that shows a working implementation of this workaround: https://github.com/rburgst/gatsby-rebuilding-problem