MCPcopy Create free account
hub / github.com/MMmaXingXing/mini-vue / processComponent

Function processComponent

code/src/runtime-core/renderer.ts:324–330  ·  view source on GitHub ↗
(n1, n2, container, parentComponent, anchor)

Source from the content-addressed store, hash-verified

322 };
323
324 const processComponent = (n1, n2, container, parentComponent, anchor) => {
325 if (!n1) {
326 mountComponent(n2, container, parentComponent, anchor);
327 } else {
328 updateComponent(n1, n2);
329 }
330 };
331
332 const updateComponent = (n1, n2) => {
333 const instance = (n2.component = n1.component);

Callers 1

patchFunction · 0.70

Calls 2

mountComponentFunction · 0.70
updateComponentFunction · 0.70

Tested by

no test coverage detected