Restore state doesn't update state in base class
nicbell opened this issue · comments
Nic Bell commented
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.
Arnaud Giuliani commented
Good catch
Arnaud Giuliani commented
has been merged for 1.1.1