loloof64
12/25/2021, 5:11 PM@Composable.
So I'm using SideEffect , but it is not run at each screen update : so is there a better way ?
@Composable
fun MyComposable() {
SideEffect { checkDraw()}
MySubComposable()
}Adam Powell
12/25/2021, 5:44 PMloloof64
12/25/2021, 6:05 PMloloof64
12/25/2021, 6:11 PMSideEffect is always run, but it is a problem in my MutableStateFlow. First, it returns the correct state, then an incorrect state is following.
What I thought was a problem with SideEffect is in fact a problem with my StateFlow.Colton Idle
12/27/2021, 2:56 PMloloof64
12/30/2021, 5:03 PMSideEffect . I mean, I had to think again about the state I'm creating in my @Composable.Colton Idle
12/30/2021, 5:07 PMloloof64
12/31/2021, 9:30 AM