Second call `queryContent` in `useAsyncData` never resolve
See original GitHub issueEnvironment
- 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
- https://stackblitz.com/edit/github-6ahpka?file=app.vue
- 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
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Power your blog with Nuxt Content
In <script> , we're using useAsyncData to fetch the document with queryContent() based on the current path gotten from useRoute() . Within ...
Read more >Querying - Nuxt Content
The queryContent() function is auto-imported by Nuxt Content to build queries ... Wrap your query in the useAsyncData composable (auto-imported as well).
Read more >error loading dynamically imported module - You.com | The AI ...
I am using useAsyncData and queryContent to get the content for these pages then ContentRenderer and ContentRendererMarkdown to display them. Describe the bug....
Read more >content - githubmemory
[Docs] Footer icons are partially broken · How to auto import Components in Source Content folder? · Second call `queryContent` in `useAsyncData` never...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s will not work if second queri depend first
Maybe this helps: https://github.com/nuxt/content/issues/1368