HiltViewModel is not cleared after navigation

Advertisements After creating a new project in Android Studio and adding the relevant dependencies: buildscript { ext { compose_version = ‘1.1.0-beta01’ } dependencies { classpath("com.google.dagger:hilt-android-gradle-plugin:2.38.1") } }// Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { id ‘com.android.application’ version ‘7.2.1’ apply false id ‘com.android.library’ version ‘7.2.1’ apply false id… Read More HiltViewModel is not cleared after navigation