Replies: 1 comment 1 reply
-
Hey @aartikov, Good point! You can achieve the goals below with this library:
But this is very experimental yet, so I would appreciate you if you could let me any issues or feedback. Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, skydoves 🖐
Your library looks interesting, but I propose an alternative solution for
UiState
.Let's make it generic:
So, we can create
UiState.Success<Posters>(...)
orUiState.Success<UserModel>(...)
. Also, it is not a problem to place a list inside -UiState.Success<List<WhatsAppUser>>(...)
.Generics allow to write generic code (sorry for the tautology 😅). For example, we can write an universal composable function to display
UiState
:It is harder to make such reusable functions for a bunch of code-generated classes. Maybe, code generation is not a best solution here. Did I miss something? What do you think?
Beta Was this translation helpful? Give feedback.
All reactions