MCPcopy
hub / github.com/ygs-code/vue / isPatchable

Function isPatchable

vue.js:8347–8353  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

8345
8346 //循环组件实例 是否定义有 tag标签
8347 function isPatchable(vnode) {
8348 while (vnode.componentInstance) { //组件实例 循环n层组件实例
8349 vnode = vnode.componentInstance._vnode;
8350 }
8351 //判断组件是否定义有 tag标签
8352 return isDef(vnode.tag)
8353 }
8354
8355 // invokeCreateHooks,循环cbs.create 钩子函数,并且执行调用,其实cbs.create 钩子函数就是platformModules中的attrs中 updateAttrs更新属性函数。如果是组件则调用componentVNodeHooks中的 create
8356 function invokeCreateHooks(vnode, insertedVnodeQueue) {

Callers 3

initComponentFunction · 0.85
patchVnodeFunction · 0.85
createPatchFunctionFunction · 0.85

Calls 1

isDefFunction · 0.85

Tested by

no test coverage detected