This repo recreates the behavior described here: gatsbyjs/gatsby#38634
To reproduce the broken GraphiQL UI, you just need ot export the ENABLE_GATSBY_REFRESH_ENDPOINT
like so...
ENABLE_GATSBY_REFRESH_ENDPOINT=true ./node_modules/.bin/gatsby develop