Skip to content

BlockSuite API Documentation / @blocksuite/store / BaseReactiveYData

Class: abstract BaseReactiveYData<T, Y>

Extended by

Type Parameters

T

Y

Constructors

new BaseReactiveYData()

new BaseReactiveYData<T, Y>(): BaseReactiveYData<T, Y>

Returns

BaseReactiveYData<T, Y>

Properties

_options

abstract protected readonly _options: ProxyOptions<T>

Defined in

packages/framework/store/src/reactive/utils.ts:130


_proxy

abstract protected readonly _proxy: T

Defined in

packages/framework/store/src/reactive/utils.ts:132


_skipNext

protected _skipNext: boolean = false

Defined in

packages/framework/store/src/reactive/utils.ts:134


_source

abstract protected readonly _source: T

Defined in

packages/framework/store/src/reactive/utils.ts:136


_stashed

protected readonly _stashed: Set<string | number>

Defined in

packages/framework/store/src/reactive/utils.ts:138


_ySource

abstract protected readonly _ySource: Y

Defined in

packages/framework/store/src/reactive/utils.ts:150

Accessors

proxy

get proxy(): T

Returns

T

Defined in

packages/framework/store/src/reactive/utils.ts:152

Methods

_getOrigin()

protected _getOrigin(doc): object

Parameters

doc: Doc

Returns

object

doc

doc: Doc

proxy

proxy: true

target

target: BaseReactiveYData<any, any>

Defined in

packages/framework/store/src/reactive/utils.ts:102


_getProxy()

abstract protected _getProxy(): T

Returns

T

Defined in

packages/framework/store/src/reactive/utils.ts:156


_onObserve()

protected _onObserve(event, handler): void

Parameters

event: YEvent<any>

handler

Returns

void

Defined in

packages/framework/store/src/reactive/utils.ts:118


_transact()

protected _transact(doc, fn): void

Parameters

doc: Doc

fn

Returns

void

Defined in

packages/framework/store/src/reactive/utils.ts:140


_updateWithSkip()

protected _updateWithSkip(fn): void

Parameters

fn

Returns

void

Defined in

packages/framework/store/src/reactive/utils.ts:144


pop()

abstract pop(prop): void

Parameters

prop: string | number

Returns

void

Defined in

packages/framework/store/src/reactive/utils.ts:158


stash()

abstract stash(prop): void

Parameters

prop: string | number

Returns

void

Defined in

packages/framework/store/src/reactive/utils.ts:159