Skip to content

wirestate-lit-signals

Preact Signals Lit reactivity binding (@lit-labs/preact-signals) for Wirestate Lit services.

Signal state is defined with @wirestate/signals. This package wires those signals into Lit rendering through @lit-labs/preact-signals.

Signals Lit

FunctionDescription
SignalWatcher-

Variables

VariableDescription
htmlInterprets a template literal as an HTML template that can efficiently render to and update a container.
svgInterprets a template literal as an SVG template that can efficiently render to and update a container.
watchRenders a signal and subscribes to it, updating the part when the signal changes.
withWatchWraps a lit-html template tag function (html or svg) to add support for automatically wrapping Signal instances in the watch() directive.