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 whileAdam Powell
01/24/2022, 2:36 AMLaunchedEffect(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 readingAdam Powell
01/24/2022, 2:37 AMAdam Powell
01/24/2022, 2:39 AMmyViewModel
🙂