Package-level declarations
Types
Link copied to clipboard
class MutationPreviewClient(previewData: Map<UniqueId, MutationState<*>>, val defaultMutationOptions: MutationOptions = MutationOptions) : MutationClient
Usage:
Link copied to clipboard
class QueryPreviewClient(previewData: Map<UniqueId, QueryState<*>>, val defaultQueryOptions: QueryOptions = QueryOptions) : QueryClient
Usage:
Link copied to clipboard
class SubscriptionPreviewClient(previewData: Map<UniqueId, SubscriptionState<*>>, val defaultSubscriptionOptions: SubscriptionOptions = SubscriptionOptions()) : SubscriptionClient
Usage:
Link copied to clipboard
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.
Functions
Link copied to clipboard
fun MutationPreviewClient(initializer: MutationPreviewClient.Builder.() -> Unit): MutationPreviewClient
Creates a MutationPreviewClient with the provided initializer.
Link copied to clipboard
Create a QueryPreviewClient instance with the provided initializer.
Link copied to clipboard
fun SubscriptionPreviewClient(initializer: SubscriptionPreviewClient.Builder.() -> Unit): SubscriptionPreviewClient
Create a SubscriptionPreviewClient instance with the provided initializer.