Variable: watch
ts
const watch: (signal: Signal<unknown>) => DirectiveResult;Defined in: @lit-labs/preact-signals:
Renders a signal and subscribes to it, updating the part when the signal changes.
Parameters
| Parameter | Type |
|---|---|
signal | Signal<unknown> |
Returns
DirectiveResult