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

New slot syntax doesn't work the same way as old syntax #11060

Closed
MKhasib opened this issue Jun 3, 2024 · 1 comment
Closed

New slot syntax doesn't work the same way as old syntax #11060

MKhasib opened this issue Jun 3, 2024 · 1 comment

Comments

@MKhasib
Copy link

MKhasib commented Jun 3, 2024

Vue version

3

Link to minimal reproduction

vuejs/vue#12232

Steps to reproduce

Issue started with vue2.6 and continued to vue3

What is expected?

it should run updated lifecycle hook whenever parent of the slot component is updated

What is actually happening?

it doesn't run updated lifecycle of the slot unless you use a v-model on the input slot

System Info

No response

Any additional comments?

No response

@LinusBorg
Copy link
Member

This is expected. Slots in Vue 3 now always behave like scoped slots in Vue 2 - meaning the child will only update when the slot content changed.

You can check out the Migration guide for details

@github-actions github-actions bot locked and limited conversation to collaborators Jun 18, 2024
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

2 participants