(inst: Instance, parent: unknown, rec: Rec)
| 1449 | |
| 1450 | // Released first: a bound child it places keeps its nodes until the flush ends, for a placement later in the flush. |
| 1451 | const 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. |