InfiniteQueryRef

interface InfiniteQueryRef<T, S> : Actor

A reference to an Query for InfiniteQueryKey.

Parameters

T

Type of data to retrieve.

S

Type of parameter.

Properties

Link copied to clipboard
abstract val key: InfiniteQueryKey<T, S>

The InfiniteQueryKey for the Query.

Link copied to clipboard
abstract val marker: Marker

The Marker specified in QueryClient.getInfiniteQuery.

Link copied to clipboard
abstract val options: QueryOptions

The QueryOptions configured for the query.

Link copied to clipboard
abstract val state: StateFlow<QueryState<QueryChunks<T, S>>>

State Flow to receive the current state of the query.

Functions

Link copied to clipboard
open suspend fun invalidate()

Invalidates the Query.

Link copied to clipboard
abstract fun launchIn(scope: CoroutineScope): Job

Launches the actor.

Link copied to clipboard
open suspend fun loadMore(param: S)

Fetches data for the InfiniteQueryKey using the value of param.

Link copied to clipboard
open suspend fun resume()

Resumes the Query.

Link copied to clipboard
abstract suspend fun send(command: InfiniteQueryCommand<T, S>)

Sends a QueryCommand to the Actor.