There's a race condition bug in gatsby core at the moment where queries are run between createSchemaCustomization and sourceNodes and because of which consecutive runs after the first one fail when running develop with ENABLE_GATSBY_REFRESH_ENDPOINT set to true
This PR moves createTypes to the right lifecycle (createSchemaCustomization) which fixes this issue
There's a race condition bug in gatsby core at the moment where queries are run between
createSchemaCustomization
andsourceNodes
and because of which consecutive runs after the first one fail when runningdevelop
withENABLE_GATSBY_REFRESH_ENDPOINT
set totrue
createTypes
to the right lifecycle (createSchemaCustomization
) which fixes this issue