toggle menu
soil
1.0.0-alpha07
common
switch theme
search in API
soil-query-test
/
soil.query.test
/
FakeQueryKey
Fake
Query
Key
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.
Members
Constructors
Fake
Query
Key
Link copied to clipboard
constructor
(
target
:
QueryKey
<
T
>
,
mock
:
FakeQueryFetch
<
T
>
)
Properties
content
Cacheable
Link copied to clipboard
open
override
val
contentCacheable
:
QueryContentCacheable
<
T
>
?
content
Equals
Link copied to clipboard
open
override
val
contentEquals
:
QueryContentEquals
<
T
>
?
fetch
Link copied to clipboard
open
override
val
fetch
:
suspend
QueryReceiver
.
(
)
->
T
id
Link copied to clipboard
open
override
val
id
:
QueryId
<
T
>
Functions
on
Configure
Options
Link copied to clipboard
open
override
fun
onConfigureOptions
(
)
:
QueryOptionsOverride
?
on
Initial
Data
Link copied to clipboard
open
override
fun
onInitialData
(
)
:
QueryInitialData
<
T
>
?
on
Recover
Data
Link copied to clipboard
open
override
fun
onRecoverData
(
)
:
QueryRecoverData
<
T
>
?