Skip to content

Inconsistent behavior in nested useFetch #14270

Closed
@qin-guan

Description

Environment


  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.4
  • Package Manager: npm@7.17.0
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-d4cjwd?file=server%2Fapi%2Ftest.ts,layouts%2Fdefault.vue,pages%2Findex.vue,components%2FChild.vue

Describe the bug

A useFetch query used stays in pending state when the same query is ran in the parent component/page/layout.

Additional context

No response

Logs

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions