Skip to content

BlockSuite API Documentation / @blocksuite/store / ReactiveYMap

Class: ReactiveYMap ​

Contents ​

Extends ​

Constructors ​

new ReactiveYMap(_source, _ySource, _options) ​

new ReactiveYMap(_source, _ySource, _options): ReactiveYMap

Parameters ​

• _source: UnRecord

• _ySource: Map<unknown>

• _options: ProxyOptions<UnRecord>

Returns ​

ReactiveYMap

Overrides ​

@blocksuite/store.BaseReactiveYData.constructor

Source ​

packages/store/src/reactive/proxy.ts:136

Properties ​

_options ​

protected readonly _options: ProxyOptions<UnRecord>

Inherited from ​

@blocksuite/store.BaseReactiveYData._options

Source ​

packages/store/src/reactive/proxy.ts:139


_proxy ​

protected readonly _proxy: UnRecord

Overrides ​

@blocksuite/store.BaseReactiveYData._proxy

Source ​

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


_skipNext ​

protected _skipNext: boolean = false

Inherited from ​

@blocksuite/store.BaseReactiveYData._skipNext

Source ​

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


_source ​

protected readonly _source: UnRecord

Inherited from ​

@blocksuite/store.BaseReactiveYData._source

Source ​

packages/store/src/reactive/proxy.ts:137


_stashed ​

protected readonly _stashed: Set<string | number>

Inherited from ​

@blocksuite/store.BaseReactiveYData._stashed

Source ​

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


_ySource ​

protected readonly _ySource: Map<unknown>

Inherited from ​

@blocksuite/store.BaseReactiveYData._ySource

Source ​

packages/store/src/reactive/proxy.ts:138

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>

Inherited from ​

@blocksuite/store.BaseReactiveYData._getOrigin

Source ​

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


_getProxy() ​

protected _getProxy(): UnRecord

Returns ​

UnRecord

Overrides ​

@blocksuite/store.BaseReactiveYData._getProxy

Source ​

packages/store/src/reactive/proxy.ts:157


_observer() ​

private _observer(event): void

Parameters ​

• event: YMapEvent<unknown>

Returns ​

void

Source ​

packages/store/src/reactive/proxy.ts:213


_onObserve() ​

protected _onObserve(event, handler): void

Parameters ​

• event: YEvent<any>

• handler: () => void

Returns ​

void

Inherited from ​

@blocksuite/store.BaseReactiveYData._onObserve

Source ​

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


_transact() ​

protected _transact(doc, fn): void

Parameters ​

• doc: Doc

• fn: () => void

Returns ​

void

Inherited from ​

@blocksuite/store.BaseReactiveYData._transact

Source ​

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


_updateWithSkip() ​

protected _updateWithSkip(fn): void

Parameters ​

• fn: () => void

Returns ​

void

Inherited from ​

@blocksuite/store.BaseReactiveYData._updateWithSkip

Source ​

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


pop() ​

pop(prop): void

Parameters ​

• prop: string

Returns ​

void

Overrides ​

@blocksuite/store.BaseReactiveYData.pop

Source ​

packages/store/src/reactive/proxy.ts:151


stash() ​

stash(prop): void

Parameters ​

• prop: string

Returns ​

void

Overrides ​

@blocksuite/store.BaseReactiveYData.stash

Source ​

packages/store/src/reactive/proxy.ts:147


Generated using typedoc-plugin-markdown and TypeDoc