chore: comments
This commit is contained in:
parent
60e803ce62
commit
c94ce3ed62
@ -26,7 +26,11 @@ export function createComponentInstance(
|
|||||||
): ComponentInstance {
|
): ComponentInstance {
|
||||||
// component instance creation is done in two steps.
|
// component instance creation is done in two steps.
|
||||||
// first, `initializeComponentInstance` is called inside base component
|
// first, `initializeComponentInstance` is called inside base component
|
||||||
// constructor as the instance is created so that
|
// constructor as the instance is created so that the extended component's
|
||||||
|
// constructor has access to certain properties and most importantly,
|
||||||
|
// this.$props.
|
||||||
|
// we are storing the vnodes in variables here so that there's no need to
|
||||||
|
// always pass args in super()
|
||||||
currentVNode = vnode
|
currentVNode = vnode
|
||||||
currentContextVNode = contextVNode
|
currentContextVNode = contextVNode
|
||||||
const instance = (vnode.children = new Component()) as ComponentInstance
|
const instance = (vnode.children = new Component()) as ComponentInstance
|
||||||
|
Loading…
Reference in New Issue
Block a user