gsala
08/31/2023, 11:16 AMrememberCoroutineScope
in the the rememberXState
Composable function) so I can run animations or timing logic within the state class?gsala
08/31/2023, 11:16 AM@Composable
fun rememberXState(...) {
val coroutineScope = rememberCorotuineScope()
XState(coroutineScope)
}
class XState(val coroutineScope : CoroutineScope){
...
}
ascii
08/31/2023, 11:39 AMskippable
. Try to work around it if you can.ascii
08/31/2023, 11:41 AMgsala
08/31/2023, 11:46 AM@Stable
thoughefemoney
08/31/2023, 11:46 AMascii
08/31/2023, 2:11 PMyou can always mark the state as stableSure, but in this specific case, I believe it's not recommended? I can't point to any specific resource because I don't remember where I saw it. PullRefreshState is also not marked stable, and that was made by Google devs for M2.
Tunji Dahunsi
08/31/2023, 3:01 PMZach Klippenstein (he/him) [MOD]
08/31/2023, 8:25 PMZach Klippenstein (he/him) [MOD]
08/31/2023, 8:26 PMZach Klippenstein (he/him) [MOD]
08/31/2023, 8:27 PM