Skip to content

BlockSuite API Documentation / @blocksuite/block-std / SignalWatcher

Function: SignalWatcher()

SignalWatcher<T>(Base): T

Adds the ability for a LitElement or other ReactiveElement class to watch for access to Preact signals during the update lifecycle and trigger a new update when signals values change.

Type Parameters

T extends ReactiveElementConstructor

Parameters

Base: T

Returns

T

Defined in

packages/framework/block-std/src/view/signal-watcher.ts:21