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

useFetch, useAsyncData Network calls duplication is broken #27230

Closed
Nisekoi5 opened this issue May 15, 2024 · 2 comments
Closed

useFetch, useAsyncData Network calls duplication is broken #27230

Nisekoi5 opened this issue May 15, 2024 · 2 comments

Comments

@Nisekoi5
Copy link

Nisekoi5 commented May 15, 2024

Environment

  • Operating System: Linux
  • Node Version: v18.18.0
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: npm@10.2.3
  • Builder: -
  • User Config: devtools, ssr, build, modules, vite
  • Runtime Modules: ()
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-vzhr2r?file=app.vue

Describe the bug

When using useAsyncData or useFetch inside the component in vMain of vuetify.
Open the console. can see that the call was run once on the server and client at the same time.

  <vApp>
    <vMain>
      <Test></Test>
    </vMain>
  </vApp>

No longer calls 2 times after removing the component from vMain

  <vApp>
     <Test></Test>
    <vMain>
    </vMain>
  </vApp>

Additional context

Should this issue be fixed by vuetify or nuxt? But if nuxt can fix it, it can also prevent similar situations in other UI library pages.

Logs

No response

Copy link

stackblitz bot commented May 15, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@Nisekoi5 Nisekoi5 changed the title Network calls duplication is broken useFetch, useAsyncData Network calls duplication is broken May 15, 2024
@manniL
Copy link
Member

manniL commented May 15, 2024

Let's track in #25853

@manniL manniL closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants