You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I am using Voyager to navigate in a project built on the Orbit MVI and Koin libraries. Orbit requires a ViewModel to store the container, so i can't use ScreenModel. I am injecting the viewModel using the getVievModel from Koin in @composable override fun Content(). The problem is that when i'm leaving the screen using the pop() function, the viewModel is not cleared over the app life cycle and if i open the same screen again i have the same viewModel with preloaded data. How to deal with this? Thank you in advance!
The text was updated successfully, but these errors were encountered:
Hi. I am using Voyager to navigate in a project built on the Orbit MVI and Koin libraries. Orbit requires a ViewModel to store the container, so i can't use ScreenModel. I am injecting the viewModel using the getVievModel from Koin in @composable override fun Content(). The problem is that when i'm leaving the screen using the pop() function, the viewModel is not cleared over the app life cycle and if i open the same screen again i have the same viewModel with preloaded data. How to deal with this? Thank you in advance!
The text was updated successfully, but these errors were encountered: