toggle menu
swr
androidJvm
switch theme
search in API
swr
/
com.kazakago.swr.compose
/
useSWRImmutable
use
SWRImmutable
@
Composable
fun
<
KEY
,
DATA
>
useSWRImmutable
(
key
:
(
)
->
KEY
?
,
fetcher
:
suspend
(
key
:
KEY
)
->
DATA
?
=
null
,
scope
:
CoroutineScope
?
=
null
,
options
:
SWRConfig
<
KEY
,
DATA
>
.
(
)
->
Unit
=
{}
)
:
SWRState
<
KEY
,
DATA
>
@
Composable
fun
<
KEY
,
DATA
>
useSWRImmutable
(
key
:
KEY
?
,
fetcher
:
suspend
(
key
:
KEY
)
->
DATA
?
=
null
,
scope
:
CoroutineScope
?
=
null
,
options
:
SWRConfig
<
KEY
,
DATA
>
.
(
)
->
Unit
=
{}
)
:
SWRState
<
KEY
,
DATA
>