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

Teleport rendered before async dependencies resolve in Suspense component #8603

Open
ploca14 opened this issue Jun 19, 2023 · 0 comments · May be fixed by #8619
Open

Teleport rendered before async dependencies resolve in Suspense component #8603

ploca14 opened this issue Jun 19, 2023 · 0 comments · May be fixed by #8619

Comments

@ploca14
Copy link

ploca14 commented Jun 19, 2023

Vue version

3.3.4

Link to minimal reproduction

https://play.vuejs.org/#eNp9UMtqwzAQ/JVFlzgQIpNjKwdCf6BQH31xrQ0R6IUl25jSf+/Kju0ESm6aYWc0Mz/s4v2x75C9MRGaVvkIAWPnz5VVxrs2wiWMtvlwxsO1dQZ2R74ySbh7r6zgs5REBCIar+uIhADEVxc82jAjwlL19yeBzZtvZLoobyrAoLQGZ/UILVqJLb0bhHjDLZOzaCPQbYvB6R6l4E8flKhxahFdUbFvJ8eKzeaTJrmiBGUMSkWR9Sj4IlkCr4aCP3QRfK3JDuxpkX+mbJwNESTqeoQCMhP2UJzB4gCftKkKmGVUYCJJUiqDrouJOgDd7mniytZDre4e2SnP88S+Gj7FnnLBNtSyEtTXSHue6DeKJsNS8qFVZdnvH5ezukg=

Steps to reproduce

See reproduction link.

<Suspense>
  <div>
    <AsyncComp />
    <div>This will only render once the AsyncComp is resolved</div>
    <Teleport to="body">This is rendered immediately</Teleport>
  </div>
</Suspense>

What is expected?

The Teleport is only rendered once the async dependencies of the Suspense resolve.

What is actually happening?

The Teleport is rendered immediately, before the async dependencies of the Suspense resolve.

System Info

No response

Any additional comments?

No response

@ploca14 ploca14 changed the title Teleport ignores Suspense Teleport rendered before async dependencies resolve in Suspense component Jun 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