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
| Function | Description |
|---|---|
| SignalWatcher | - |
Variables
| Variable | Description |
|---|---|
| html | Interprets a template literal as an HTML template that can efficiently render to and update a container. |
| svg | Interprets a template literal as an SVG template that can efficiently render to and update a container. |
| watch | Renders a signal and subscribes to it, updating the part when the signal changes. |
| withWatch | Wraps a lit-html template tag function (html or svg) to add support for automatically wrapping Signal instances in the watch() directive. |