Pablichjenkov
10/11/2023, 6:00 PMStylianos Gakis
10/11/2023, 6:05 PMFrancesc
10/11/2023, 6:52 PMLaunchedEffect runs on a non-immediate dispatcher, so it will be scheduled to run at a later time. You should not rely on their order.
It's fine to have multiple of them, if they have different keys. Otherwise, group them by common keys.Francesc
10/11/2023, 6:54 PMZach Klippenstein (he/him) [MOD]
10/11/2023, 7:46 PMshikasd
10/11/2023, 7:59 PMDisposableEffect is backed by remember observer and it is dispatched first, then side effects, then LaunchedEffect is run on the next frame.
Between effects, they are guaranteed to be run in declaration order and disposed in the opposite order (as Zach mentioned above)shikasd
10/11/2023, 8:01 PMFrancesc
10/11/2023, 8:19 PMthis is what I saw, so it's not the order they are in the composition (only by groups). Is this documented somewhere?is backed by remember observer and it is dispatched first, then side effects, thenDisposableEffectis run on the next frame.LaunchedEffect
Pablichjenkov
10/12/2023, 2:16 AM