Fudge
07/28/2020, 10:48 AMLazyColumnItems lags the screen for like 0.5 seconds when displayed? Is this perhaps because this is a preview, or do I have some way of profiling where the device spends its time?Timo Drick
07/28/2020, 12:42 PMFudge
07/28/2020, 12:45 PMTimo Drick
07/28/2020, 12:46 PMFudge
07/28/2020, 12:53 PMFudge
07/28/2020, 12:55 PMremember{} doesn't remember at all and then try to simplify itFudge
07/28/2020, 12:57 PMremember{} and the likesTimo Drick
07/28/2020, 1:29 PMTimo Drick
07/28/2020, 1:29 PMFudge
07/28/2020, 1:35 PMTimo Drick
07/28/2020, 1:40 PMvar state by mutableStateOf(initialState)Fudge
07/28/2020, 1:41 PMFudge
07/28/2020, 1:42 PMsavedInstanceState supposed to work too? If it survives process death it should survive switching views tooTimo Drick
07/28/2020, 1:42 PMTimo Drick
07/28/2020, 1:43 PMFudge
07/28/2020, 1:43 PMsavedInstanceState, seems like it doesn't work at allFudge
07/28/2020, 1:43 PMHalil Ozercan
07/28/2020, 1:45 PMremember is confusing because it feels like it's supposed to remember a variable but it actually remembers the result of a calculation. So if your composable gets recomposed because of a dependency change, remember will trigger again but won't invoke the callback function. So if you've made changes to the local variable that was initialized by remember, it will get re-set by initially remembered value