-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix wrongly matched named slots in functional components
This is a subtle edge case caused when a stateful component triggers a self re-render, which reuses cached slot nodes. The cached slot nodes, if returned from a functional render fn, gets the fnContext property which causes subsequent slot resolving to not function properly. To fix this, nodes returned from functional components need to be cloned before getting assigned fnContext. fix vuejs#7817
- Loading branch information
Showing
2 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters