QueryPreviewClient

class QueryPreviewClient(previewData: Map<UniqueId, QueryState<*>>, val defaultQueryOptions: QueryOptions = QueryOptions) : QueryClient

Usage:

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

Constructors

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

Types

Link copied to clipboard
class Builder

Builder for QueryPreviewClient.

Properties

Link copied to clipboard

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