QueryPreviewClient

Usage:

val queryClient = QueryPreviewClient {
on(MyQueryId1) { QueryState.success("data") }
on(MyQueryId2) { .. }
}

Constructors

Link copied to clipboard
constructor(previewData: Map<UniqueId, QueryState<*>>)

Types

Link copied to clipboard
class Builder

Builder for QueryPreviewClient.

Properties

Link copied to clipboard
open override val queryReceiver: QueryReceiver

Functions

Link copied to clipboard
open override fun <T, S> getInfiniteQuery(key: InfiniteQueryKey<T, S>, marker: Marker): InfiniteQueryRef<T, S>
Link copied to clipboard
open override fun <T> getQuery(key: QueryKey<T>, marker: Marker): QueryRef<T>
Link copied to clipboard
open override fun <T, S> prefetchInfiniteQuery(key: InfiniteQueryKey<T, S>, marker: Marker): Job
Link copied to clipboard
open override fun <T> prefetchQuery(key: QueryKey<T>, marker: Marker): Job