API > @blocksuite/store > ReactiveYArray
Class: ReactiveYArray ​
Extends ​
BaseReactiveYData
<unknown
[],Array
<unknown
> >
Constructors ​
constructor ​
new ReactiveYArray(
_source
,_ySource
,_options
):ReactiveYArray
Parameters ​
Parameter | Type |
---|---|
_source | unknown [] |
_ySource | Array < unknown > |
_options | ProxyOptions < unknown [] > |
Returns ​
Overrides ​
Defined In ​
packages/store/src/reactive/proxy.ts:21
Properties ​
_options ​
protected
readonly
_options:ProxyOptions
<unknown
[] >
Defined In ​
packages/store/src/reactive/proxy.ts:24
Inherited from ​
_proxy ​
protected
readonly
_proxy:unknown
[]
Defined In ​
packages/store/src/reactive/proxy.ts:20
Overrides ​
_skipNext ​
protected
_skipNext:boolean
=false
Defined In ​
packages/store/src/reactive/utils.ts:103
Inherited from ​
_source ​
protected
readonly
_source:unknown
[]
Defined In ​
packages/store/src/reactive/proxy.ts:22
Inherited from ​
_ySource ​
protected
readonly
_ySource:Array
<unknown
>
Defined In ​
packages/store/src/reactive/proxy.ts:23
Inherited from ​
Accessors ​
proxy ​
get
proxy():T
Defined In ​
packages/store/src/reactive/utils.ts:106
Inherited from ​
Methods ​
_getOrigin ​
protected
_getOrigin(doc
):object
Parameters ​
Parameter | Type |
---|---|
doc | Doc |
Returns ​
doc
​
doc:
Doc
proxy
​
proxy:
true
target
​
target:
BaseReactiveYData
<any
,any
>
Inherited from ​
Defined In ​
packages/store/src/reactive/utils.ts:110
_getProxy ​
protected
_getProxy():unknown
[]
Returns ​
unknown
[]
Overrides ​
Defined In ​
packages/store/src/reactive/proxy.ts:32
_observer ​
private
_observer(event
):void
Parameters ​
Parameter | Type |
---|---|
event | YArrayEvent < unknown > |
Returns ​
void
Defined In ​
packages/store/src/reactive/proxy.ts:90
_onObserve ​
protected
_onObserve(event
,handler
):void
Parameters ​
Parameter | Type |
---|---|
event | YEvent < any > |
handler | function |
Returns ​
void
Inherited from ​
Defined In ​
packages/store/src/reactive/utils.ts:136
_transact ​
protected
_transact(doc
,fn
):void
Parameters ​
Parameter | Type |
---|---|
doc | Doc |
fn | function |
Returns ​
void
Inherited from ​
Defined In ​
packages/store/src/reactive/utils.ts:131
_updateWithSkip ​
protected
_updateWithSkip(fn
):void
Parameters ​
Parameter | Type |
---|---|
fn | function |
Returns ​
void
Inherited from ​
BaseReactiveYData
._updateWithSkip
Defined In ​
packages/store/src/reactive/utils.ts:125