Skip to content
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

ViewModels not cleared when navigation out #65

Open
NestorPerez13 opened this issue Nov 6, 2021 · 0 comments
Open

ViewModels not cleared when navigation out #65

NestorPerez13 opened this issue Nov 6, 2021 · 0 comments

Comments

@NestorPerez13
Copy link

The ViewModels provided in the composition by hilt, are never destroyed when a new root destination is selected.
With compose navigation this is different because models are cleared as soon as the destination gets cleared from the back stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant