QueryPreviewClient
class QueryPreviewClient(previewData: Map<UniqueId, QueryState<*>>, val defaultQueryOptions: QueryOptions = QueryOptions) : QueryClient
Usage:
val queryClient = QueryPreviewClient {
on(MyQueryId1) { QueryState.success("data") }
on(MyQueryId2) { .. }
}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(previewData: Map<UniqueId, QueryState<*>>, defaultQueryOptions: QueryOptions = QueryOptions)
Types
Link copied to clipboard
class Builder
Builder for QueryPreviewClient.
Functions
Link copied to clipboard
open override fun <T, S> getInfiniteQuery(key: InfiniteQueryKey<T, S>, marker: Marker): InfiniteQueryRef<T, S>
Link copied to clipboard
Link copied to clipboard