You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The state in a VM created using koinNavGraphViewModel doesn't seem to be restored correctly from the SavedStateHandle
To Reproduce
Steps to reproduce the behavior:
I added a more detailed description and a workaround that seems to be working fine using activityViewModel in the sample project linked below
Expected behavior
keys inside SavedStateHandle should contain values when state is restored after process was killed by the system
Koin module and version: koin-androidx-navigation:3.6.0-alpha3 (I first noticed it in 3.5.3)
Describe the bug
The state in a VM created using
koinNavGraphViewModel
doesn't seem to be restored correctly from theSavedStateHandle
To Reproduce
Steps to reproduce the behavior:
I added a more detailed description and a workaround that seems to be working fine using
activityViewModel
in the sample project linked belowExpected behavior
keys inside
SavedStateHandle
should contain values when state is restored after process was killed by the systemKoin module and version:
koin-androidx-navigation:3.6.0-alpha3
(I first noticed it in3.5.3
)Snippet or Sample project to help reproduce
https://github.com/JozefCeluch/koin-state-loss
The text was updated successfully, but these errors were encountered: