toggle menu
hooks2
common
switch theme
search in API
hooks2
/
xyz.junerver.compose.hooks.userequest
/
RequestHolder
Request
Holder
@
Stable
data
class
RequestHolder
<
TData
>
(
val
data
:
State
<
TData
?
>
,
val
isLoading
:
State
<
Boolean
>
,
val
error
:
State
<
Throwable
?
>
,
val
request
:
ReqFn
,
val
mutate
:
MutateFn
<
TData
>
,
val
refresh
:
RefreshFn
,
val
cancel
:
CancelFn
)
Members
Constructors
Request
Holder
Link copied to clipboard
constructor
(
data
:
State
<
TData
?
>
,
isLoading
:
State
<
Boolean
>
,
error
:
State
<
Throwable
?
>
,
request
:
ReqFn
,
mutate
:
MutateFn
<
TData
>
,
refresh
:
RefreshFn
,
cancel
:
CancelFn
)
Properties
cancel
Link copied to clipboard
val
cancel
:
CancelFn
data
Link copied to clipboard
val
data
:
State
<
TData
?
>
error
Link copied to clipboard
val
error
:
State
<
Throwable
?
>
is
Loading
Link copied to clipboard
val
isLoading
:
State
<
Boolean
>
mutate
Link copied to clipboard
val
mutate
:
MutateFn
<
TData
>
refresh
Link copied to clipboard
val
refresh
:
RefreshFn
request
Link copied to clipboard
val
request
:
ReqFn