InfiniteQueryRef

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 id: InfiniteQueryId<T, S>

A unique identifier used for managing InfiniteQueryKey.

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
expect abstract fun close()
Link copied to clipboard
abstract suspend fun invalidate()

Invalidates the Query.

Link copied to clipboard
abstract suspend fun join()

Joins the Query.

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

Fetches data for the InfiniteQueryKey using the value of param.

Link copied to clipboard
abstract fun nextParam(data: QueryChunks<T, S>): S?

Function returning the parameter for additional fetching.

Link copied to clipboard
abstract suspend fun resume()

Resumes the Query.