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.Zach 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)Francesc
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, thenDisposableEffect
is run on the next frame.LaunchedEffect
Pablichjenkov
10/12/2023, 2:16 AM