QueryRef

interface QueryRef<T> : Actor

A reference to an Query for QueryKey.

Parameters

T

Type of data to retrieve.

Properties

Link copied to clipboard
abstract val key: QueryKey<T>

The QueryKey for the Query.

Link copied to clipboard
abstract val marker: Marker

The Marker specified in QueryClient.getQuery.

Link copied to clipboard
abstract val options: QueryOptions

The QueryOptions configured for the query.

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

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 resume()

Resumes the Query.

Link copied to clipboard
abstract suspend fun send(command: QueryCommand<T>)

Sends a QueryCommand to the Actor.