-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
SSR hydration throws error when slot (fragment) contains a single <transition>
whose element's v-if
evaluates to false
#5352
Comments
<transition>
component (reason unclear; minimal repo provided)<transition>
component (reason unclear; minimal repo provided)
More Debugging InfoHere is more specifically what is happening with this bug. When the The reason for this can be seen inside of
Either way, In the minimal reproduction above, neither of these things happen, which appears to undefined behavior and causes a bug. In this case, when the It appears that this state in turn causes the This then results in the <div id="app">
<div>
<!--[-->
<!--]-->
<!--]-->
</div>
</div> ...and now there is an extra unmatched fragment end anchor in the DOM. So this bug results in a bit of a mess. |
<transition>
component (reason unclear; minimal repo provided)<transition>
component due to a bug in fragment logic
<transition>
component due to a bug in fragment logic<transition>
whose element's v-if
evaluates to false
Might be duplicate of #3989 ? |
Version
3.2.29
Reproduction link
https://github.com/AaronBeaudoin/vite-vue-ssr-bug-repr/tree/transition-mismatch
Steps to reproduce
npm i
to install dependencies thennpm run dev
to run.http://localhost:3001
. Note the error in the console.What is expected?
Hydration completes without errors.
What is actually happening?
Hydration throws an error.
SEE THE "More Debugging Info" COMMENT BELOW FOR AN EXPLANATION.
The text was updated successfully, but these errors were encountered: