Class: AsyncLiveQuery<QO, TO, QB, TB>
Type parameters​
Name | Type |
---|---|
QO | extends RequestOptions = RecordCacheQueryOptions |
TO | extends RequestOptions = RecordCacheTransformOptions |
QB | RecordQueryBuilder |
TB | RecordTransformBuilder |
Hierarchy​
LiveQuery
↳
AsyncLiveQuery
Constructors​
constructor​
• new AsyncLiveQuery<QO
, TO
, QB
, TB
>(settings
)
Type parameters​
Name | Type |
---|---|
QO | extends RequestOptions = RecordCacheQueryOptions |
TO | extends RequestOptions = RecordCacheTransformOptions |
QB | RecordQueryBuilder <string , RecordIdentity > |
TB | RecordTransformBuilder <string , RecordIdentity , UninitializedRecord > |
Parameters​
Name | Type |
---|---|
settings | AsyncLiveQuerySettings <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​
Name | Type |
---|---|
operation | RecordOperation |
Returns​
boolean
Inherited from​
LiveQuery.operationRelevantForQuery
Defined in​
record-cache/src/live-query/live-query.ts:63
query​
â–¸ query<Result
>(): Promise
<Result
>
Type parameters​
Name | Type |
---|---|
Result | extends RecordQueryResult <InitializedRecord > = RecordQueryResult <InitializedRecord > |
Returns​
Promise
<Result
>
Defined in​
record-cache/src/live-query/async-live-query.ts:80
subscribe​
â–¸ subscribe(cb
): () => void
Parameters​
Name | Type |
---|---|
cb | (update : AsyncLiveQueryUpdate <QO , TO , QB , TB >) => void |
Returns​
fn
â–¸ (): void
Returns​
void