Like, if I have UiState like this defined in my viewModel:
data class UiState(
val isLoading: Boolean = false,
val hasError: Boolean = false,
val errorMessage: String = "",
val category: Category = Category.MOVIE,
val discoveredMovies: List<Movie> = emptyList(),
val discoveredSeries: List<Serie> = emptyList()
)
Is it bad to pass the whole state to TypedEpoxyController? Because otherwise I should define methods submitMovieData and submitSerieData etc in fragment level.
And also when the controller complicates and depends on even more properties, how shold I use it then?
Like, if I have UiState like this defined in my viewModel:
Is it bad to pass the whole state to TypedEpoxyController? Because otherwise I should define methods
submitMovieData
andsubmitSerieData
etc in fragment level.And also when the controller complicates and depends on even more properties, how shold I use it then?