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

Function processElement

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

Source from the content-addressed store, hash-verified

56 };
57
58 const processElement = (n1, n2, container, parentComponent, anchor) => {
59 // init --> update
60 if (!n1) {
61 mountElement(n2, container, parentComponent, anchor);
62 } else {
63 patchElement(n1, n2, container, parentComponent, anchor);
64 }
65 };
66
67 const patchElement = (n1, n2, container, parentComponent, anchor) => {
68 console.log("patchElement");

Callers 1

patchFunction · 0.70

Calls 2

mountElementFunction · 0.70
patchElementFunction · 0.70

Tested by

no test coverage detected