Colton Idle
07/15/2024, 8:05 PMSharingStarted.WhileSubscribedOrRetained
3️⃣ Use navigation with Lazily
Ian Lake
07/15/2024, 8:12 PMLazily
is absolutely, positively the wrong choice (and will keep work going while that screen is on the back stack)Colton Idle
07/15/2024, 8:13 PMColton Idle
07/15/2024, 8:14 PMLazily
solution in the navigation docsIan Lake
07/15/2024, 8:15 PMAnselmo Alexandre
07/16/2024, 9:44 AMLazily
is applicable if you using a shared-view-model use-case where you have a flow and you have to keep the stream alive for each fragment/composable that is collecting from that flow, even when that is on back stack. Correct me if I am wrong @Ian LakeHristijan
07/16/2024, 11:56 AMRok Oblak
07/16/2024, 3:11 PMColton Idle
07/16/2024, 3:14 PM