Skip to content

Second call queryContent in useAsyncData never resolve #1471

Closed
@cawa-93

Description

@cawa-93

Environment

  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.8-27687584.51dc736
  • Package Manager: yarn@1.22.10
  • Builder: vite
  • User Config: modules
  • Runtime Modules: @nuxt/content@2.1.0-27687576.9b9b648, @nuxt/ui@0.3.1-27672317.7f8e554
  • Build Modules: -

Reproduction

  1. https://stackblitz.com/edit/github-6ahpka?file=app.vue
  2. https://stackblitz.com/edit/github-6ahpka-h93acz?file=app.vue

Describe the bug

In my example, tags are first quered, then posts by tag name. The second calls queryContent to find posts stuck and never resolves. If you change the order of calls, the posts will be loaded and the tags will "stuck"

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions