SwrPreviewClient
class SwrPreviewClient(query: QueryPreviewClient = QueryPreviewClient(emptyMap()), mutation: MutationPreviewClient = MutationPreviewClient(emptyMap()), subscription: SubscriptionPreviewClient = SubscriptionPreviewClient(emptyMap()), val errorRelay: Flow<ErrorRecord> = flow { }) : SwrClient, SwrClientPlus, QueryClient, MutationClient, SubscriptionClient
Provides the ability to preview specific queries and mutations for composable previews.
val client = SwrPreviewClient(..)
SwrClientProvider(client = client) {
// Composable previews
}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(query: QueryPreviewClient = QueryPreviewClient(emptyMap()), mutation: MutationPreviewClient = MutationPreviewClient(emptyMap()), subscription: SubscriptionPreviewClient = SubscriptionPreviewClient(emptyMap()), errorRelay: Flow<ErrorRecord> = flow { })
Properties
Functions
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard