Kata
10/02/2023, 6:37 AMonCleared()
method of the viewModel.
I would expect to have something like a DisposableSavableEffect
acting like the rememberSavable
that would only be called once the screen is opened and then disposed when it is removed from the backstack.
Any ideas on how to solve this issue with compose?Timo Drick
10/02/2023, 10:34 AMKata
10/02/2023, 10:47 AMTimo Drick
10/02/2023, 10:49 AMKata
10/02/2023, 10:50 AMinit
and onClear
from the viewModel would be enough, they are only destroyed once the view is not in the stackTimo Drick
10/02/2023, 10:51 AMKata
10/02/2023, 11:11 AMinit
you would make a network call. Now this wouldn't be called again on orientation change or on back navigation. And I am afraid compose is only set up for viewmodel architectureTimo Drick
10/02/2023, 11:12 AMKata
10/02/2023, 11:57 AMTimo Drick
10/02/2023, 12:04 PMIan Lake
10/02/2023, 1:35 PMKata
10/05/2023, 2:28 PM