BlockSuite API Documentation / @blocksuite/store / ReactiveYMap
Class: ReactiveYMap
Extends
BaseReactiveYData
<UnRecord
,YMap
<unknown
>>
Constructors
new ReactiveYMap()
new ReactiveYMap(
_source
,_ySource
,_options
):ReactiveYMap
Parameters
• _source: UnRecord
• _ySource: YMap
<unknown
>
• _options: ProxyOptions
<UnRecord
>
Returns
Overrides
Defined in
packages/framework/store/src/reactive/proxy.ts:272
Properties
_options
protected
readonly
_options:ProxyOptions
<UnRecord
>
Inherited from
Defined in
packages/framework/store/src/reactive/proxy.ts:275
_proxy
protected
readonly
_proxy:UnRecord
Overrides
Defined in
packages/framework/store/src/reactive/proxy.ts:270
_skipNext
protected
_skipNext:boolean
=false
Inherited from
Defined in
packages/framework/store/src/reactive/utils.ts:134
_source
protected
readonly
_source:UnRecord
Inherited from
Defined in
packages/framework/store/src/reactive/proxy.ts:273
_stashed
protected
readonly
_stashed:Set
<string
|number
>
Inherited from
Defined in
packages/framework/store/src/reactive/utils.ts:138
_ySource
protected
readonly
_ySource:YMap
<unknown
>
Inherited from
Defined in
packages/framework/store/src/reactive/proxy.ts:274
Accessors
proxy
get
proxy():T
Returns
T
Inherited from
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
>
Inherited from
Defined in
packages/framework/store/src/reactive/utils.ts:102
_getProxy()
protected
_getProxy():UnRecord
Returns
Overrides
Defined in
packages/framework/store/src/reactive/proxy.ts:188
_onObserve()
protected
_onObserve(event
,handler
):void
Parameters
• event: YEvent
<any
>
• handler
Returns
void
Inherited from
Defined in
packages/framework/store/src/reactive/utils.ts:118
_transact()
protected
_transact(doc
,fn
):void
Parameters
• doc: Doc
• fn
Returns
void
Inherited from
Defined in
packages/framework/store/src/reactive/utils.ts:140
_updateWithSkip()
protected
_updateWithSkip(fn
):void
Parameters
• fn
Returns
void
Inherited from
BaseReactiveYData
._updateWithSkip
Defined in
packages/framework/store/src/reactive/utils.ts:144
pop()
pop(
prop
):void
Parameters
• prop: string
Returns
void
Overrides
Defined in
packages/framework/store/src/reactive/proxy.ts:283
stash()
stash(
prop
):void
Parameters
• prop: string
Returns
void
Overrides
Defined in
packages/framework/store/src/reactive/proxy.ts:289