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

"oldChildren is null" using v-for in <slot> #2820

Closed
g-braeunlich opened this issue Dec 14, 2020 · 1 comment
Closed

"oldChildren is null" using v-for in <slot> #2820

g-braeunlich opened this issue Dec 14, 2020 · 1 comment

Comments

@g-braeunlich
Copy link

Version

3.0.4

Reproduction link

https://codeberg.org/g-braeunlich/vue3-bug

Steps to reproduce

What is expected?

Browser displays "1"

What is actually happening?

[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next 
  at <Anonymous> 
  at <App>
Uncaught (in promise) TypeError: oldChildren is null
    patchBlockChildren runtime-core.esm-bundler.js:3996
    processFragment runtime-core.esm-bundler.js:4065
    patch runtime-core.esm-bundler.js:3708
    patchBlockChildren runtime-core.esm-bundler.js:4013
    patchElement runtime-core.esm-bundler.js:3977
    processElement runtime-core.esm-bundler.js:3795
    patch runtime-core.esm-bundler.js:3712
    componentEffect runtime-core.esm-bundler.js:4275
    reactiveEffect reactivity.esm-bundler.js:42
    callWithErrorHandling runtime-core.esm-bundler.js:154
    flushJobs runtime-core.esm-bundler.js:362

This bug happens if a component with a slot is given a child with a v-for, which is initially looping over an empty array and later changed to a non empty array.

The bug does not occur if the loop runs over a non empty list during creation

@luwuer
Copy link
Contributor

luwuer commented Dec 15, 2020

Same as #2715 and closed by #2717

@posva posva closed this as completed Dec 15, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants