I encountered same issue when using modalController with Hilt. The issue might be with rootController.measureLevel() function as it doesn't increase level for modal screens, so the function clearViewModelStoreOwnerByKey(key) doesn't clear viewModelStore.
I encountered same issue when using modalController with Hilt. The issue might be with
rootController.measureLevel()
function as it doesn't increase level for modal screens, so the functionclearViewModelStoreOwnerByKey(key)
doesn't clear viewModelStore.