Skip to content

Instantly share code, notes, and snippets.

@Skyyo
Created October 2, 2022 12:22
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/e4c768df74005c7e4c54e6ac01908b17 to your computer and use it in GitHub Desktop.
Save Skyyo/e4c768df74005c7e4c54e6ac01908b17 to your computer and use it in GitHub Desktop.
perf_snippet_3
// not skippable if User is unstable
@Composable
private fun UserDetails(user: User) {
Text(text = "name: ${user.name} id:${user.id}")
}
// skippable even of User is unstable
@Composable
private fun UserDetails(id: Long, name: String) {
Text(text = "name: $name id: $id")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment