Bundle / foldkit-bundle

When to use it

SituationUse
A child machine placed two or more times, or published for othersa Bundle
A child with Subscriptions or resources you keep forgetting to lifta Bundle, then placements.complete
A one-off child used in a single place, such as a @foldkit/ui componenta hand-wired Submodel, with a Link as its fold's lens
Something without its own Model: a one-shot effect, a DOM attachmenta Command or a Mount, not a Bundle

A Bundle owns nothing at runtime. The parent Model owns the child's state; the bundle describes the transitions of that slice, and the Link says which slice. Two placements are two independent slices with two independent sets of Subscriptions. To check that ownership beside Sync and Remote, see foldkit-bundle-surface.

Install

bash
pnpm add foldkit-bundle effect foldkit

effect and foldkit are peer dependencies.