Join Slack
Powered by
Is it okay to use mutable states in the View Model...
# compose
a
AN
06/17/2021, 6:36 PM
Is it okay to use mutable states in the View Model rather than exposing other observable types like stateflows or livedata?
🚫 1
👌 4
AN
06/17/2021, 6:45 PM
Another question is for one time events, do we have to wrap the state with an event wrapper class? or is there another solution that I'm not aware of?
r
Ravi
06/17/2021, 6:53 PM
check
this
and use
safer
way to collect these onetime events.
🙌 1
Open in Slack
Previous
Next