Skip to content

Instantly share code, notes, and snippets.

@Skyyo
Last active October 2, 2022 12:29
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 Skyyo/f694b5e10e3925ca20f06f25a4139c08 to your computer and use it in GitHub Desktop.
Save Skyyo/f694b5e10e3925ca20f06f25a4139c08 to your computer and use it in GitHub Desktop.
perf_snippet_4
@Immutable
data class ImmutableUserWrapper(val user: User)
@Composable
private fun UserDetails(wrapper: ImmutableUserWrapper) {
Text(text = "name: ${wrapper.user.name} id:${wrapper.user.id}")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment