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

Cannot use v-for in the slot #2715

Closed
web-97 opened this issue Dec 3, 2020 · 4 comments · Fixed by #2717
Closed

Cannot use v-for in the slot #2715

web-97 opened this issue Dec 3, 2020 · 4 comments · Fixed by #2717
Labels
🐞 bug Something isn't working

Comments

@web-97
Copy link

web-97 commented Dec 3, 2020

Version

3.0.4

Reproduction link

https://codesandbox.io/s/nice-shaw-8b9cv

Steps to reproduce

When using v-for in the slot, if the initial list object = [], an error will be reported directly in the subsequent push

What is expected?

Correctly perform responsive rendering

What is actually happening?

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


Found this problem in 3.0.4

@posva
Copy link
Member

posva commented Dec 3, 2020

I don't get an error (could be a cache problem of Codesandbox) but you are using the same key for all of your todos, they must be different.

@posva posva closed this as completed Dec 3, 2020
@web-97
Copy link
Author

web-97 commented Dec 3, 2020

I don't get an error (could be a cache problem of Codesandbox) but you are using the same key for all of your todos, they must be different.

Thanks, updated the new code is not a problem with key

@posva
Copy link
Member

posva commented Dec 3, 2020

Then provide a valid reproduction, it's still the same code:

Screen Shot 2020-12-03 at 10 15 40

@web-97
Copy link
Author

web-97 commented Dec 3, 2020

Then provide a valid reproduction, it's still the same code:

Screen Shot 2020-12-03 at 10 15 40

Sorry, just debugging the code. I have updated the code https://codesandbox.io/s/nice-shaw-8b9cv on this link

@posva posva reopened this Dec 3, 2020
@posva posva added the 🐞 bug Something isn't working label Dec 3, 2020
yyx990803 pushed a commit that referenced this issue Dec 3, 2020
…ull (#2717)

fix #2715 

The bug was introduced by #2485 where a compiled slot may result in a bailed Fragment
which then gets its dynamicChildren set to `null` by the renderer.
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants