Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State is not restored correctly when using koinNavGraphViewModel #1828

Open
JozefCeluch opened this issue Mar 25, 2024 · 0 comments
Open

State is not restored correctly when using koinNavGraphViewModel #1828

JozefCeluch opened this issue Mar 25, 2024 · 0 comments

Comments

@JozefCeluch
Copy link

JozefCeluch commented Mar 25, 2024

Describe the bug

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)

Snippet or Sample project to help reproduce
https://github.com/JozefCeluch/koin-state-loss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant