Colton Idle
01/23/2022, 7:37 PMLaunchedEffect(key1 = "launch_once") {
myViewModel.doSomething()
}
ste
01/23/2022, 7:40 PMAt first glance I guess it's kinda clever for trying to get something to launch only onceIt's basically
LaunchedEffect(Unit)
, isn't it?Adam Powell
01/24/2022, 2:35 AMUnit
is more or less what we standardized on. true
had some support on the team for a whileLaunchedEffect(Unit)
is meant to look suspicious in the same way while (true)
looks suspicious. The lack of a "real" key there is supposed to invite closer readingmyViewModel
š