Vlad
11/21/2024, 4:22 PMLaunchedEffect(navigationRequest) {
navigator.pushNotSuspend(navigiationRequest)
// perhaps notify vm that request consumed, but that is another topic
}
Because Launched Effect needs additional time to launch a coroutine which we don't actually utilize?
What to use instead?
Just:
remember(navigationRequest) {
navigator.pushNotSuspend(navigiationRequest)
}
Stylianos Gakis
11/21/2024, 4:30 PMStylianos Gakis
11/21/2024, 4:30 PMVlad
11/21/2024, 4:30 PMStylianos Gakis
11/21/2024, 4:31 PMVlad
11/21/2024, 4:33 PMVlad
11/21/2024, 4:34 PMVlad
11/21/2024, 4:35 PMjw
11/21/2024, 4:36 PMSideEffect
Vlad
11/21/2024, 4:36 PMVlad
11/21/2024, 4:37 PMjw
11/21/2024, 4:37 PMsnapshotFlow
of navigationRequest
and perform navigation in the collectionjw
11/21/2024, 4:37 PMVlad
11/21/2024, 4:40 PMjw
11/21/2024, 4:41 PMjw
11/21/2024, 4:41 PMjw
11/21/2024, 4:42 PMVlad
11/21/2024, 4:44 PM2024-11-21 18:00:25.517 ---DisposableEffect()
2024-11-21 18:00:25.713 ----LaunchedEffect()
My current problem is that I see that my every navigate method is delayed by these almost 200ms (debug mode), when I never need that?!jw
11/21/2024, 4:46 PMVlad
11/21/2024, 5:03 PM2024-11-21 18:59:49.168 ---DisposableEffect()
2024-11-21 18:59:49.179 ----LaunchedEffect()
In the release variant the difference is not that critical (10-50ms) but still if not needed then why.