Skip to content

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

Class: abstract BlockServiceWatcher

Deprecated

BlockServiceWatcher is deprecated. You should reconsider where to put your feature.

BlockServiceWatcher is a legacy extension that is used to watch the slots registered on block service. However, we recommend using the new extension system.

Extends

Constructors

new BlockServiceWatcher()

new BlockServiceWatcher(std, blockService): BlockServiceWatcher

Parameters

std

BlockStdScope

blockService

BlockService

Returns

BlockServiceWatcher

Overrides

LifeCycleWatcher.constructor

Defined in

packages/framework/block-std/src/extension/service-watcher.ts:27

Properties

blockService

readonly blockService: BlockService

Defined in

packages/framework/block-std/src/extension/service-watcher.ts:29


std

readonly std: BlockStdScope

Inherited from

LifeCycleWatcher.std

Defined in

packages/framework/block-std/src/extension/lifecycle-watcher.ts:30


flavour

static flavour: string

Defined in

packages/framework/block-std/src/extension/service-watcher.ts:25


key

static key: string

Inherited from

LifeCycleWatcher.key

Defined in

packages/framework/block-std/src/extension/lifecycle-watcher.ts:28

Methods

created()

created(): void

Called when std is created.

Returns

void

Inherited from

LifeCycleWatcher.created

Defined in

packages/framework/block-std/src/extension/lifecycle-watcher.ts:54


mounted()

mounted(): void

Called when editor host is mounted. Which means the editor host emit the connectedCallback lifecycle event.

Returns

void

Inherited from

LifeCycleWatcher.mounted

Defined in

packages/framework/block-std/src/extension/lifecycle-watcher.ts:60


rendered()

rendered(): void

Called when std.render is called.

Returns

void

Inherited from

LifeCycleWatcher.rendered

Defined in

packages/framework/block-std/src/extension/lifecycle-watcher.ts:65


unmounted()

unmounted(): void

Called when editor host is unmounted. Which means the editor host emit the disconnectedCallback lifecycle event.

Returns

void

Inherited from

LifeCycleWatcher.unmounted

Defined in

packages/framework/block-std/src/extension/lifecycle-watcher.ts:71


setup()

static setup(di): void

Parameters

di

Container

Returns

void

Overrides

LifeCycleWatcher.setup

Defined in

packages/framework/block-std/src/extension/service-watcher.ts:34