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

Ref is never tracked in Promise executor function #14857

Closed
nndnha opened this issue Sep 9, 2022 · 1 comment
Closed

Ref is never tracked in Promise executor function #14857

nndnha opened this issue Sep 9, 2022 · 1 comment

Comments

@nndnha
Copy link

nndnha commented Sep 9, 2022

Environment


  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.10-27710894.0cc49e2
  • Nitro Version: 0.5.2-27709289.11cc5cd
  • Package Manager: [email protected]
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

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

Describe the bug

The promise that use to wait for the data will never resolve make the page stuck at loading state. This problem occurs only during the server side rendering stage, the same code will work fine in the client side.

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

In Vue SSR, effectively reactivity is disabled, to prevent memory leaks (and because in the vast majority of cases it is not needed). Watchers do not really watch, for example. You could consider raising an issue upstream at https://github.com/vuejs/core, but I'm not sure this is a bug, just an edge case.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 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

No branches or pull requests

2 participants