uniflow-kt / uniflow-kt

Uniflow 🦄 - Simple Unidirectional Data Flow for Android & Kotlin, using Kotlin coroutines and open to functional programming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Restore state doesn't update state in base class

nicbell opened this issue · comments

Restore state doesn't update state value stored in LiveDataPublisher.

PersistentLiveDataPublisher.restoreState updates _states object but _currentState in LiveDataPublisher never gets updated on restore.

This means states.value will have the correct value in your view model but getState() will be incorrect.

Good catch

has been merged for 1.1.1