@tb-dev/vue - v2.0.10
Preparing search index...
asyncRef
Function asyncRef
asyncRef
<
T
>
(
initial
:
T
,
fn
:
()
=>
Promise
<
T
>
,
options
?:
AsyncRefOptions
,
)
:
{
execute
:
()
=>
Promise
<
void
>
;
isLoading
:
Readonly
<
Ref
<
boolean
,
boolean
>
>
;
isReady
:
Readonly
<
Ref
<
boolean
,
boolean
>
>
;
state
:
ShallowRef
<
T
>
;
}
Type Parameters
T
Parameters
initial
:
T
fn
:
()
=>
Promise
<
T
>
options
:
AsyncRefOptions
= {}
Returns
{
execute
:
()
=>
Promise
<
void
>
;
isLoading
:
Readonly
<
Ref
<
boolean
,
boolean
>
>
;
isReady
:
Readonly
<
Ref
<
boolean
,
boolean
>
>
;
state
:
ShallowRef
<
T
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@tb-dev/vue - v2.0.10
Loading...