Previews in Next.js using GraphQL

Thanks for the reply.

Yeah, I’ve looked at that example but my setup is quite different :sweat_smile:.

I’m using babel-plugin-graphql-import so all my queries are in separate files to keep things organized.

I’ve noticed that they are changing the ref here, but how would that work using useQuery?