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

Inconsistent lifecycle hook and function refs execution order with dynamic components and Suspense #11344

Open
jh-leong opened this issue Jul 12, 2024 · 0 comments

Comments

@jh-leong
Copy link
Member

Vue version

3.4.31

Link to minimal reproduction

playground

Steps to reproduce

  1. click the button about
  2. check the console

What is expected?

The lifecycle hooks and functional ref calls should follow a consistent order regardless of whether the dynamic component is wrapped in Suspense.

What is actually happening?

There is an inconsistency in the order of onMounted, onUnmounted, and updateRef calls when using Suspense

System Info

No response

Any additional comments?

No response

@edison1105 edison1105 added scope: suspense 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. need discussion and removed 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. labels Jul 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