Skip to main content
Version: 0.17

Class: AsyncLiveQuery<QO, TO, QB, TB>

Type parameters​

NameType
QOextends RequestOptions = RecordCacheQueryOptions
TOextends RequestOptions = RecordCacheTransformOptions
QBRecordQueryBuilder
TBRecordTransformBuilder

Hierarchy​

  • LiveQuery

    ↳ AsyncLiveQuery

Constructors​

constructor​

• new AsyncLiveQuery<QO, TO, QB, TB>(settings)

Type parameters​

NameType
QOextends RequestOptions = RecordCacheQueryOptions
TOextends RequestOptions = RecordCacheTransformOptions
QBRecordQueryBuilder<string, RecordIdentity>
TBRecordTransformBuilder<string, RecordIdentity, UninitializedRecord>

Parameters​

NameType
settingsAsyncLiveQuerySettings<QO, TO, QB, TB>

Overrides​

LiveQuery.constructor

Defined in​

record-cache/src/live-query/async-live-query.ts:75

Properties​

debounce​

• Readonly debounce: boolean

Inherited from​

LiveQuery.debounce

Defined in​

record-cache/src/live-query/live-query.ts:24

Methods​

operationRelevantForQuery​

â–¸ operationRelevantForQuery(operation): boolean

Parameters​

NameType
operationRecordOperation

Returns​

boolean

Inherited from​

LiveQuery.operationRelevantForQuery

Defined in​

record-cache/src/live-query/live-query.ts:63


query​

â–¸ query<Result>(): Promise<Result>

Type parameters​

NameType
Resultextends RecordQueryResult<InitializedRecord> = RecordQueryResult<InitializedRecord>

Returns​

Promise<Result>

Defined in​

record-cache/src/live-query/async-live-query.ts:80


subscribe​

â–¸ subscribe(cb): () => void

Parameters​

NameType
cb(update: AsyncLiveQueryUpdate<QO, TO, QB, TB>) => void

Returns​

fn

â–¸ (): void

Returns​

void

Defined in​

record-cache/src/live-query/async-live-query.ts:86