Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf of refreshNuxtData waterfall is a very unpleasant #15256

Closed
misaon opened this issue Oct 25, 2022 · 0 comments · Fixed by nuxt/framework#8470
Closed

perf of refreshNuxtData waterfall is a very unpleasant #15256

misaon opened this issue Oct 25, 2022 · 0 comments · Fixed by nuxt/framework#8470

Comments

@misaon
Copy link
Contributor

misaon commented Oct 25, 2022

Environment

- Operating System: `Linux`
- Node Version:     `v18.11.0`
- Nuxt Version:     `3.0.0-rc.12`
- Nitro Version:    `0.6.0`
- Package Manager:  `yarn@3.2.1`
- Builder:          `vite`
- User Config:      `modules`, `oxyshopNuxt`, `i18n`
- Runtime Modules:  `normalizedModule()`, `normalizedModule()`
- Build Modules:    `-`

Reproduction

Using multiple asyncData requests on a site. and call refreshNuxtData.

Describe the bug

If I have e.g. an eshop and I need to refresh multiple requests, there is a very unpleasant waterfall because the requests run synchronously.

image

Its performance issue.

Additional context

It would be good if the refreshNuxtData method had options to enable "simultaneous ".
I can also think of the possibility to add the tags parameter with the useAsyncData function, then I could determine through the set what data nuxtRefreshData updates.

Logs

No response

@misaon misaon changed the title Ability to run requests simultaneously in refreshNuxtData perf of refreshNuxtData waterfall is a very unpleasant Oct 25, 2022
@danielroe danielroe self-assigned this Oct 25, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants