Skip to content

Commit 6b23216

Browse files
committed
chore: comment on slot optimization hint [ci skip]
1 parent d2bf3cc commit 6b23216

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/runtime-core/src/componentSlots.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export type RawSlots = {
3636
// normalizeChildren when the component vnode is created.
3737
_ctx?: ComponentInternalInstance | null
3838
// internal, indicates compiler generated slots
39+
// we use a reserved property instead of a vnode patchFlag because the slots
40+
// object may be directly passed down to a child component in a manual
41+
// render funciton, and the optimization hint need to be on the slot object
42+
// itself to be preserved.
3943
_?: 1
4044
}
4145

0 commit comments

Comments
 (0)