-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Viewmodel not cleared when screen is disposed #210
Comments
|
I found the issue in the pull request #162 from @aftabahmadTW that removed the |
As I mentioned, this used to work and only started happening once I updated to the latest version. (Without making any changes to my viewmodels or navigation. Also not sure what you mean by providing a tag - I am just using the method showed in the documentation.. |
@slickorange try rollback to |
I am having trouble with RC06 and the latest version of Jetpack compose. |
I'm on RC06 and it's not working |
Any updates on this? |
I am still seeing this issue with the latest version (1.0.0-rc08) |
The main issue here is that we change the behavior of The PR #212 from @programadorthi fix that issue by not casting |
Fixed on |
I am using
AndroidScreen
withHiltViewModel
When the screen is disposed, the viewmodel is not cleared.
Another issue, which I am not sure is related, is that screens of the same type share viewmodels. Eg. I have a
LessonScreen
which displays a lesson. When I go from "lesson A" to "lesson B" by pushing a newLessonScreen
the screen for LessonB does not get it's own instance of the viewmodel (this was the behaviour when I used RC 5, but not what I see with 7)I am pretty stuck and would appreciate any help
The text was updated successfully, but these errors were encountered: