framework icon indicating copy to clipboard operation
framework copied to clipboard

Duplicate response when calling a composable with useLazyFetch inside

Open lucassimines opened this issue 3 years ago • 0 comments

Environment


  • Operating System: Darwin
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.6
  • Package Manager: [email protected]
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-16xwyo?file=app.vue,composables%2FuseApiFetch.ts

Describe the bug

The bug is that, when using useLazyFetch inside a composable, and then call multiple different requests using the custom function, it returns the same data as the first request.

It is not generating an unique key

Additional context

No response

Logs

No response

lucassimines avatar Aug 04 '22 14:08 lucassimines