Concepts
Commands, Subscriptions, and Mounts
Choose the lifecycle boundary for one-shot, ongoing, and element-bound work.
A Command requests one-shot work in response to a transition. A Subscription describes ongoing inputs and is interrupted with its owning runtime scope. A Mount action is tied to an element’s lifecycle: it begins when that element mounts and must release listeners, observers, or pending work when it unmounts.
Choose the narrowest lifetime that matches the behavior. Do not create subscriptions from view evaluation; render descriptions, then let the runtime own their lifetime. For app helpers see signals, clipboard, scroll, and ResizeObserver.