-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed
Labels
🐞 bugSomething isn't workingSomething isn't workinghas PRA pull request has already been submitted to solve the issueA pull request has already been submitted to solve the issuescope: suspensescope: transition
Description
Vue version
3.2.47
Link to minimal reproduction
https://stackblitz.com/edit/github-z3ry59-hbu5x7
SFC Playground
Steps to reproduce
<template>
<transition name="page" mode="out-in" :duration="300">
<Suspense>
<component :is="Component" />
</Suspense>
</transition>
</template>Click the button marked 'Trigger error'.
This will switch components within the Transition. On next tick, it will switch them back. (To reproduce, it's sufficient to switch them at any point before the transition has finished.)
Note that this follows the component order specified in https://vuejs.org/guide/built-ins/suspense.html#combining-with-other-components.
What is expected?
I expect no errors.
What is actually happening?
The following error is thrown:
Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
In addition, the content of the Suspense slot is removed and the page remains broken.
System Info
No response
Any additional comments?
No response
oezkancodes, MiniDigger, edgarsn, andysay, ShiriCZ and 36 morevanling, TomasSestak, marcelxpfeifer, rainbox-taojun and miclgaelojvribeiro and rainbox-taojun
Metadata
Metadata
Assignees
Labels
🐞 bugSomething isn't workingSomething isn't workinghas PRA pull request has already been submitted to solve the issueA pull request has already been submitted to solve the issuescope: suspensescope: transition