From: Evan You Date: Tue, 30 Jun 2020 16:01:05 +0000 (-0400) Subject: chore: comment on slot optimization hint [ci skip] X-Git-Tag: v3.0.0-beta.17~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b23216e6de1f22d8f628a3cef5716372fa7fb38;p=thirdparty%2Fvuejs%2Fcore.git chore: comment on slot optimization hint [ci skip] --- diff --git a/packages/runtime-core/src/componentSlots.ts b/packages/runtime-core/src/componentSlots.ts index 28f6ab1ef4..1ab6a0c272 100644 --- a/packages/runtime-core/src/componentSlots.ts +++ b/packages/runtime-core/src/componentSlots.ts @@ -36,6 +36,10 @@ export type RawSlots = { // normalizeChildren when the component vnode is created. _ctx?: ComponentInternalInstance | null // internal, indicates compiler generated slots + // we use a reserved property instead of a vnode patchFlag because the slots + // object may be directly passed down to a child component in a manual + // render funciton, and the optimization hint need to be on the slot object + // itself to be preserved. _?: 1 }