Closed OndrejMalek closed 5 years ago
I guess it's the expected behavior. The text you input on the EditText isn't part of the VM state, nor its being handled in any way other than to create/edit tasks, so there's no reason for it to persist during such scenario.
You could make the user's input part of the state and have the EditText text set to this value during invalidate
though.
Well thx, this does not seem like expected behavior from user perspective. To lose data on rotation. I does not make it easier to comprehend MvRx if it is part of framework or bug.
@OndrejMalek it's just a sample, not a full featured app. As such, it's intended to get you started with MvRx and not handling user input on configuration changes isn't a bug but and omittion most likely for brevity.
Anyway, you would handle user inputs almost exactly the same way as you handle other things.
Fixed with https://github.com/airbnb/MvRx/pull/209
Hi, just looking into your examples and EditText does not preserve state when changed than rotated. Is it intended behavior?