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

Function remove

packages/effect/src/ui/internal/kernel.ts:1451–1454  ·  view source on GitHub ↗
(inst: Instance, parent: unknown, rec: Rec)

Source from the content-addressed store, hash-verified

1449
1450// Released first: a bound child it places keeps its nodes until the flush ends, for a placement later in the flush.
1451const remove = (inst: Instance, parent: unknown, rec: Rec): void => {
1452 release(inst, rec)
1453 for (const node of nodesOf(rec, [])) inst.tree.host.remove(parent, node)
1454}
1455
1456// A bound child's old placement may hold only a placeholder while its nodes await a move,
1457// and the container may hold nodes the renderer did not place. Clearing it would detach them.

Callers 2

replaceFunction · 0.70
patchListFunction · 0.70

Calls 3

releaseFunction · 0.70
nodesOfFunction · 0.70
removeMethod · 0.65

Tested by

no test coverage detected