Skip to content

[Bug]: Viewmodel onCleared method is not called unless the app is close #2075

Open

Description

@Saroj-Maharjan-Geomoby

Is there an existing issue for this?

  • I have searched the existing issues

Is there a StackOverflow question about this issue?

  • I have searched StackOverflow

What happened?

With the introduction of nav3 NavigationState, onCleared method on viewModel is never executed unless the app is closed.

Relevant logcat output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    bug
    on Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions