Diizzayy / nuxt-graphql-client

⚡️ Minimal GraphQL Client + Code Generation for Nuxt3
https://nuxt-graphql-client.web.app
MIT License
366 stars 44 forks source link

hot reload issue #387

Open tasiotas opened 1 year ago

tasiotas commented 1 year ago

Environment


Describe the bug

Hi,

When I edit gql document, add/remove fields for retrieval, I do see hot reload in the console

[nuxt-graphql-client] ✔ [GraphQL Client]: Generation completed in 1004ms

but when I inspect data in the browser, it stays the same as before. Meaning, new/edited fields aren't there.

Every time I edit gql document, I have to restart Nuxt dev server.

Is there any known cause to this?

Expected behaviour

To see updated in the browser once client makes a request.

Reproduction

No response

Additional context

No response

Logs

No response

tasiotas commented 1 year ago

it only happens with codegen enabled

lorenzofaresin commented 1 year ago

+1

lostgeek commented 8 months ago

Can confirm: This still is a bug.

haelbichalex commented 5 months ago

Looks like this is related: https://github.com/nuxt/nuxt/issues/26648

You2s commented 2 weeks ago

+1