Open rburgst opened 4 years ago
maybe similar issue as mentioned here? https://dev.to/byronwade/comment/mjmk
anyone home?
seems to be due to this: https://github.com/gatsbyjs/gatsby/issues/20083
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
as soon as I activate this plugin together with
gatsby-source-graphql
connected to a wordpress site my maincreatePages
method is being called like 10-15 times rather than once.I am guessing there is an
await
missing somewhere.