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'm a bit worried about the idea of a public mutable state. I would assume that the state of view would be only editable inside the view model. Currently, it is open for everybody (assuming that a view model is a ContainerHost which is recommended) through the intent extension (more precisely by the orbit method).
I would expect that I won't be able to do smth like that: viewModel.intent { reduce { state.copy(isLoading = true) } } but it is allowed.
Is it implemented that way on purpose? Is it by the limitation of the interface?
The text was updated successfully, but these errors were encountered:
I'm a bit worried about the idea of a public mutable state. I would assume that the state of view would be only editable inside the view model. Currently, it is open for everybody (assuming that a view model is a
ContainerHost
which is recommended) through theintent
extension (more precisely by theorbit
method).I would expect that I won't be able to do smth like that:
viewModel.intent { reduce { state.copy(isLoading = true) } }
but it is allowed.Is it implemented that way on purpose? Is it by the limitation of the interface?
The text was updated successfully, but these errors were encountered: