Skip to content

Instantly share code, notes, and snippets.

@uteke
Last active September 1, 2023 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uteke/385b88005951e7a023f59599599e7641 to your computer and use it in GitHub Desktop.
Save uteke/385b88005951e7a023f59599599e7641 to your computer and use it in GitHub Desktop.
Mutation states
sealed interface Mutation {
data object ShowLostConnection : Mutation
data object DismissLostConnection : Mutation
data object ShowLoader : Mutation
data class ShowContent(val users: List<UserDataModel>) : Mutation
data class ShowError(val exception: Exception) : Mutation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment