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
The lifecycle of the ViewModel is bound to a StateHolder, in this case the root StateHolder is used, which is inside PreComposeApp, the lifecycle of the root StateHolder lives as long as the application is running, so onCleared is never called when you click the button, which is the expected behavior.
Describe the bug
ViewModel onCleared never called and viewModelScope is never cancelled
Minimal reproducible example
It is Desktop
The text was updated successfully, but these errors were encountered: