FakeQueryKey

class FakeQueryKey<T>(target: QueryKey<T>, mock: FakeQueryFetch<T>) : QueryKey<T>

Creates a fake query key that returns the result of the given mock function.

Constructors

Link copied to clipboard
constructor(target: QueryKey<T>, mock: FakeQueryFetch<T>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val contentEquals: QueryContentEquals<T>?
Link copied to clipboard
open override val fetch: suspend QueryReceiver.() -> T
Link copied to clipboard
open override val id: QueryId<T>

Functions

Link copied to clipboard
Link copied to clipboard
open override fun onInitialData(): QueryInitialData<T>?
Link copied to clipboard
open override fun onRecoverData(): QueryRecoverData<T>?