Odyssey icon indicating copy to clipboard operation
Odyssey copied to clipboard

When Dialog is closed, ViewModel don't clear

Open VitalyPeryatin opened this issue 2 years ago • 2 comments

VitalyPeryatin avatar Jan 06 '23 07:01 VitalyPeryatin

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.

za4em avatar Jan 25 '23 10:01 za4em

Also onScreenRemove never gets called for modal screens, so it can be the issue.

za4em avatar Jan 25 '23 11:01 za4em