louiscad
02/17/2024, 4:55 PMephemient
02/17/2024, 5:00 PMLocalInspectionMode.current
&& LaunchedEffect { ... }
runs
• LocalInspectionMode.current
&& LaunchedEffect { ... }
doesn't run
• never tried but maybe LocalContent.current.packageName.endsWith(".test")
louiscad
02/17/2024, 5:01 PMLaunchedEffect
is the first composition is offlouiscad
02/17/2024, 5:02 PMStylianos Gakis
02/17/2024, 5:20 PMyschimke
02/17/2024, 5:42 PMLocalInspectionMode.current
yschimke
02/17/2024, 5:43 PMlouiscad
02/17/2024, 5:46 PMyschimke
02/19/2024, 5:16 PMlouiscad
02/20/2024, 12:06 AMLaunchedEffect
is actually run for a short amount of time for static preview, so it fails me 🥹louiscad
02/20/2024, 12:16 AMdelay(16)
. I tried calling yield()
a few times, up to 60 times, and it never worked. delay(1)
isn't either, but delay(16)
is.louiscad
02/20/2024, 12:47 AMdelay(16)
isn't always working, delay(33)
seems to work more consistently.
I wish I didn't have to do this kind of hack with magic numbers.
I'm interested in any other solution, but I'll stick to that for now.