MCPcopy Create free account
hub / github.com/dashnowords/imfe / initComponent

Function initComponent

chapter17/vue.js:5990–6006  ·  view source on GitHub ↗
(vnode, insertedVnodeQueue)

Source from the content-addressed store, hash-verified

5988 }
5989
5990 function initComponent (vnode, insertedVnodeQueue) {
5991 if (isDef(vnode.data.pendingInsert)) {
5992 insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);
5993 vnode.data.pendingInsert = null;
5994 }
5995 vnode.elm = vnode.componentInstance.$el;
5996 if (isPatchable(vnode)) {
5997 invokeCreateHooks(vnode, insertedVnodeQueue);
5998 setScope(vnode);
5999 } else {
6000 // empty component root.
6001 // skip all element-related modules except for ref (#3455)
6002 registerRef(vnode);
6003 // make sure to invoke the insert hook
6004 insertedVnodeQueue.push(vnode);
6005 }
6006 }
6007
6008 function reactivateComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
6009 var i;

Callers 2

createComponentFunction · 0.85
hydrateFunction · 0.85

Calls 5

isDefFunction · 0.85
isPatchableFunction · 0.85
invokeCreateHooksFunction · 0.85
setScopeFunction · 0.85
registerRefFunction · 0.85

Tested by

no test coverage detected