Last active
October 2, 2022 12:29
-
-
Save Skyyo/f694b5e10e3925ca20f06f25a4139c08 to your computer and use it in GitHub Desktop.
perf_snippet_4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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