-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels