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

fix(runtime-core): don't attempt to remove null fragments (fix #7966) #8001

Closed
wants to merge 1 commit into from

Conversation

Jazcash
Copy link

@Jazcash Jazcash commented Apr 1, 2023

As described in #7966, the vue renderer crashes when using Teleport in combination with Transition and Suspense. I don't really know anything about vue core, but this simple change seems to fix the issue without breaking anything else. All unit tests pass still too.

@Jazcash Jazcash changed the title fix(core): don't attempt to remove null fragments (fix #3899) fix(core): don't attempt to remove null fragments (fix #7966) Apr 1, 2023
@skirtles-code
Copy link
Contributor

Very similar to #5342.

@Jazcash Jazcash changed the title fix(core): don't attempt to remove null fragments (fix #7966) fix(runtime-core): don't attempt to remove null fragments (fix #7966) Apr 1, 2023
@skirtles-code
Copy link
Contributor

I wonder whether this should be closed in favour of #9392?

@@ -2211,7 +2211,7 @@ function baseCreateRenderer(
// For fragments, directly remove all contained DOM nodes.
// (fragment child nodes cannot have transition)
let next
while (cur !== end) {
while (cur && cur !== end) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR, but this is not the proper fix because fragment child nodes can not be undefined. the underlying cause see

@edison1105 edison1105 closed this Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Rejected
Development

Successfully merging this pull request may close these issues.

3 participants