This is for scalability purposes as well as overall readability. The ViewModel will actually be more of a function caller rather than a state holder but still, it's better to make the Fragment in charge of only the frontend related actions and delegate all backend actions to the ViewModel or someone else.
This is for scalability purposes as well as overall readability. The ViewModel will actually be more of a function caller rather than a state holder but still, it's better to make the Fragment in charge of only the frontend related actions and delegate all backend actions to the ViewModel or someone else.