MCPcopy Create free account
hub / github.com/Effect-TS/effect / start

Function start

packages/effect/src/ui/internal/kernel.ts:1156–1166  ·  view source on GitHub ↗
(inst: Instance, parent?: unknown)

Source from the content-addressed store, hash-verified

1154}
1155
1156const start = (inst: Instance, parent?: unknown): Rec | undefined => {
1157 busy++
1158 try {
1159 const booted = boot(inst)
1160 const rendered = booted && paint(inst, parent)
1161 if (rendered !== undefined) applied(inst, booted![0], booted![1])
1162 return rendered
1163 } finally {
1164 busy--
1165 }
1166}
1167
1168/**
1169 * Starts a child `owner` binds, at `rec`, without drawing it: its path is

Callers 2

mountChildFunction · 0.70
mountFunction · 0.70

Calls 3

appliedFunction · 0.85
bootFunction · 0.70
paintFunction · 0.70

Tested by

no test coverage detected