Skip to content

Duplicate response when calling a composable with useLazyFetch inside #14499

Closed
nuxt/framework
#6632
@lucassimines

Description

Environment


  • Operating System: Darwin
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.6
  • Package Manager: npm@8.8.0
  • 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions