Hi, I want to ask, if I execute both viewModel.loadCommonGreeting(); and viewModel.loadLobbyGreeting(); in the same time and both return different object (let's say LobbyGreeting & CommonGreeting, instead of return String. And I want to show both value on the screen in different TextView.
Should I separate the state observer?
viewModel.commonState().observe(this, state -> processCommonState(state));
viewModel.lobbdyState().observe(this, state -> processLobbyState(state));
Or is there any different approach for this case?
Hi, I want to ask, if I execute both
viewModel.loadCommonGreeting();andviewModel.loadLobbyGreeting();in the same time and both return different object (let's sayLobbyGreeting&CommonGreeting, instead of return String. And I want to show both value on the screen in different TextView.Should I separate the state observer?
Or is there any different approach for this case?