the definition of MVVM still doesn't make sense to me. seems like it has many definitions. what's yo...
c
the definition of MVVM still doesn't make sense to me. seems like it has many definitions. what's your fave definition of it?
orbit mvi 2
a
Hi @Colton Idle , your problem is “what is mvvm”? Or why use mvvm and why it better than mvc or mvp etc.. Please be more detailed
a
My own sane definition of MVVM is as follows It has a
ViewModel
class which must expose observable objects to be subscribed to the UI for state updates The Presenter (in MVP) and the Controller (in MVC) do not have values that can be subscribed to MVI is a step further to MVVM, with the addition of having reducers (which are just functions that map the current state and an intent into a new state that is also posted to the observable)
c
ooh. i like this. I think this is what @kenkyee was guiding me to 💪
k
yep...fair assessment except MVI is also single state object. MVVM is generally reactive vs. callbacks
🙌 1