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

A pass-through slot causes the child component to render unnecessarily when the parent component re-renders #11503

Closed
Zheng-Changfu opened this issue Aug 5, 2024 · 3 comments

Comments

@linzhe141
Copy link
Contributor

linzhe141 commented Aug 5, 2024

@Zheng-Changfu
Copy link
Author

Zheng-Changfu commented Aug 5, 2024

https://github.com/vuejs/core/blob/2f9023d3dcb42273414271d3f59b42611a2cef32/packages/shared/src/slotFlags.ts#L8~L13

所以没有办法动态传递,要写死所有的插槽结构么

@Zheng-Changfu
Copy link
Author

Zheng-Changfu commented Aug 5, 2024

https://github.com/vuejs/core/blob/2f9023d3dcb42273414271d3f59b42611a2cef32/packages/shared/src/slotFlags.ts#L8~L13

所以没有办法动态传递,要写死所有的插槽结构么

look this isuse: vuejs/babel-plugin-jsx#712

@github-actions github-actions bot locked and limited conversation to collaborators Aug 20, 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