MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / commitTree

Function commitTree

packages/core/src/renderer/__tests__/render.golden.test.ts:66–73  ·  view source on GitHub ↗
(vnode: VNode)

Source from the content-addressed store, hash-verified

64}
65
66function commitTree(vnode: VNode) {
67 const allocator = createInstanceIdAllocator(1);
68 const res = commitVNodeTree(null, vnode, { allocator });
69 if (!res.ok) {
70 assert.fail(`commit failed: ${res.fatal.code}: ${res.fatal.detail}`);
71 }
72 return res.value.root;
73}
74
75function layoutTree(vnode: VNode) {
76 const res = layout(vnode, 0, 0, 80, 25, "column");

Callers 2

renderBytesFunction · 0.70

Calls 3

commitVNodeTreeFunction · 0.85
failMethod · 0.80

Tested by

no test coverage detected