You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to understand how to bind feature state and news into one ViewModel. Let's assume I have data class MyViewModel(val users: List<User>, val loadError: String?) and I have loading error as News class with error message text and I have users list as part of feature State
I do not understand how to wire them together. Should I do some magic combining feature with its own feature.news somehow. Or does it mean I am doing something wrong and News aren't supposed to affect ViewModels.
In other words, what are the best practicies here?
The text was updated successfully, but these errors were encountered:
Hello, everyone!
I am trying to understand how to bind feature state and news into one ViewModel. Let's assume I have
data class MyViewModel(val users: List<User>, val loadError: String?)
and I have loading error asNews
class with error message text and I have users list as part of featureState
I do not understand how to wire them together. Should I do some magic combining
feature
with its ownfeature.news
somehow. Or does it mean I am doing something wrong and News aren't supposed to affect ViewModels.In other words, what are the best practicies here?
The text was updated successfully, but these errors were encountered: