Skip to content

BlockSuite API Documentation / @blocksuite/store / BaseReactiveYData

Class: abstract BaseReactiveYData<T, Y> ​

Contents ​

Extended By ​

Type parameters ​

• T

• Y

Constructors ​

new BaseReactiveYData(undefined) ​

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

Returns ​

BaseReactiveYData<T, Y>

Properties ​

abstract _options ​

protected abstract readonly _options: ProxyOptions<T>

Source ​

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


abstract _proxy ​

protected abstract readonly _proxy: T

Source ​

packages/store/src/reactive/utils.ts:99


_skipNext ​

protected _skipNext: boolean = false

Source ​

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


abstract _source ​

protected abstract readonly _source: T

Source ​

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


_stashed ​

protected readonly _stashed: Set<string | number>

Source ​

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


abstract _ySource ​

protected abstract readonly _ySource: Y

Source ​

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

Accessors ​

proxy ​

get proxy(): T

Returns ​

T

Source ​

packages/store/src/reactive/utils.ts:110

Methods ​

_getOrigin() ​

protected _getOrigin(doc): Object

Parameters ​

• doc: Doc

Returns ​

Object

doc ​

doc: Doc

proxy ​

proxy: true

target ​

target: BaseReactiveYData<any, any>

Source ​

packages/store/src/reactive/utils.ts:114


abstract _getProxy() ​

protected abstract _getProxy(): T

Returns ​

T

Source ​

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


_onObserve() ​

protected _onObserve(event, handler): void

Parameters ​

• event: YEvent<any>

• handler: () => void

Returns ​

void

Source ​

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


_transact() ​

protected _transact(doc, fn): void

Parameters ​

• doc: Doc

• fn: () => void

Returns ​

void

Source ​

packages/store/src/reactive/utils.ts:135


_updateWithSkip() ​

protected _updateWithSkip(fn): void

Parameters ​

• fn: () => void

Returns ​

void

Source ​

packages/store/src/reactive/utils.ts:129


abstract pop() ​

abstract pop(prop): void

Parameters ​

• prop: string | number

Returns ​

void

Source ​

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


abstract stash() ​

abstract stash(prop): void

Parameters ​

• prop: string | number

Returns ​

void

Source ​

packages/store/src/reactive/utils.ts:107


Generated using typedoc-plugin-markdown and TypeDoc