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 ​
protectedreadonly_options:ProxyOptions<unknown[] >
Defined In ​
packages/store/src/reactive/proxy.ts:24
Inherited from ​
_proxy ​
protectedreadonly_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 ​
protectedreadonly_source:unknown[]
Defined In ​
packages/store/src/reactive/proxy.ts:22
Inherited from ​
_ySource ​
protectedreadonly_ySource:Array<unknown>
Defined In ​
packages/store/src/reactive/proxy.ts:23
Inherited from ​
Accessors ​
proxy ​
getproxy():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