Skip to content

BlockSuite API Documentation / @blocksuite/store / BaseReactiveYData

Class: abstract BaseReactiveYData<T, Y>

Extended by

Type parameters

T

Y

Constructors

new BaseReactiveYData(undefined)

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

Returns

BaseReactiveYData<T, Y>

Properties

_options

protected abstract readonly _options: ProxyOptions<T>

Source

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


_proxy

protected abstract readonly _proxy: T

Source

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


_skipNext

protected _skipNext: boolean = false

Source

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


_source

protected abstract readonly _source: T

Source

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


_stashed

protected readonly _stashed: Set<string | number>

Source

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


_ySource

protected abstract readonly _ySource: Y

Source

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

Accessors

proxy

get proxy(): T

Returns

T

Source

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

Methods

_getOrigin()

protected _getOrigin(doc): object

Parameters

doc: Doc

Returns

object

doc

doc: Doc

proxy

proxy: true

target

target: BaseReactiveYData<any, any>

Source

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


_getProxy()

protected abstract _getProxy(): T

Returns

T

Source

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


_onObserve()

protected _onObserve(event, handler): void

Parameters

event: YEvent<any>

handler

Returns

void

Source

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


_transact()

protected _transact(doc, fn): void

Parameters

doc: Doc

fn

Returns

void

Source

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


_updateWithSkip()

protected _updateWithSkip(fn): void

Parameters

fn

Returns

void

Source

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


pop()

abstract pop(prop): void

Parameters

prop: string | number

Returns

void

Source

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


stash()

abstract stash(prop): void

Parameters

prop: string | number

Returns

void

Source

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