MCPcopy Create free account
hub / github.com/Nynxz/ComfyUI-IdeogramHelper / processComponent

Function processComponent

web/main.js:5120–5145  ·  view source on GitHub ↗
(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized)

Source from the content-addressed store, hash-verified

5118 }
5119 };
5120 const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => {
5121 n2.slotScopeIds = slotScopeIds;
5122 if (n1 == null) {
5123 if (n2.shapeFlag & 512) {
5124 parentComponent.ctx.activate(
5125 n2,
5126 container,
5127 anchor,
5128 namespace,
5129 optimized
5130 );
5131 } else {
5132 mountComponent(
5133 n2,
5134 container,
5135 anchor,
5136 parentComponent,
5137 parentSuspense,
5138 namespace,
5139 optimized
5140 );
5141 }
5142 } else {
5143 updateComponent(n1, n2, optimized);
5144 }
5145 };
5146 const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, namespace, optimized) => {
5147 const instance = initialVNode.component = createComponentInstance(
5148 initialVNode,

Callers 1

patchFunction · 0.85

Calls 2

mountComponentFunction · 0.85
updateComponentFunction · 0.85

Tested by

no test coverage detected