nuxt-graphql-client icon indicating copy to clipboard operation
nuxt-graphql-client copied to clipboard

hot reload issue

Open tasiotas opened this issue 2 years ago • 6 comments

Environment


  • Operating System: Linux
  • Node Version: v18.12.1
  • Nuxt Version: 0.0.0
  • Nitro Version: -
  • Package Manager: unknown
  • Builder: webpack
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

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 avatar Sep 28 '23 21:09 tasiotas

it only happens with codegen enabled

tasiotas avatar Sep 28 '23 22:09 tasiotas

+1

lorenzofaresin avatar Oct 30 '23 19:10 lorenzofaresin

Can confirm: This still is a bug.

lostgeek avatar Mar 07 '24 12:03 lostgeek

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

haelbichalex avatar Jun 25 '24 09:06 haelbichalex