galex
02/15/2022, 7:25 PMStateFlow
inside a lambda inside a @Composable
? Using rememberUpdatedState
or is there anything else I should be doing instead?Stylianos Gakis
02/15/2022, 7:27 PMgalex
02/15/2022, 7:32 PMLazyColumn
Stylianos Gakis
02/15/2022, 7:36 PMLaunchedEffect
etc you can instead provide the keys that the lambda refers to. Otherwise rememberUpdatedState
should be fine afaik.galex
02/15/2022, 7:55 PMComposable
is not the value you get inside a lambda in that Composable
🤯
I think I get the recomposition idea but it’s like you have to think in 4 dimensions for what looks like a normal function!Stylianos Gakis
02/15/2022, 8:03 PMrememberUpdatedState
isn’t used) then it becomes “stale” in a sense. That’s what you’re referring to right?galex
02/15/2022, 8:08 PMgalex
02/15/2022, 8:09 PMrememberUpdatedState
. I hope I’ll be getting that click soon enough 😄galex
02/15/2022, 8:11 PMitems
is getting from LazyList
inside LazyColumn
which proved me that was rightgalex
02/15/2022, 8:11 PMStylianos Gakis
02/15/2022, 8:14 PMitems
is getting…” Are you referring to this or what? I lost you there a bit 😄galex
02/15/2022, 8:14 PMStylianos Gakis
02/15/2022, 8:15 PMgalex
02/15/2022, 8:16 PMgalex
02/15/2022, 8:17 PMStylianos Gakis
02/15/2022, 8:38 PMgalex
02/15/2022, 9:11 PM