The @banksia/signals/lit subpath provides SignalsController, connecting @banksia/signals domain stores or signals directly to LitElement and Web Component lifecycles.
SignalsControllerSignalsController implements Lit's ReactiveController interface. It establishes a reactive effect that observes the domain store and calls host.requestUpdate() whenever tracked properties mutate. Subscriptions are automatically connected in hostConnected() and disposed in hostDisconnected().
hostDisconnected() fires, preventing memory leaks in single-page applications.hostConnected().LitElement can instantiate multiple SignalsController instances to bind to distinct domain stores: