Skip to content

Instantly share code, notes, and snippets.

@Skyyo
Created October 2, 2022 12:49
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/4434ef37cd53a79f494857a63a615823 to your computer and use it in GitHub Desktop.
Save Skyyo/4434ef37cd53a79f494857a63a615823 to your computer and use it in GitHub Desktop.
perf_snippet_5
@Composable
fun UnstableLambdaScreen(viewModel: TypicalViewModel = hiltViewModel()) {
Column {
// button is not skippable due to usage of viewModel.onContinueClick()
Button(onClick = { viewModel.onContinueClick() }) {
Text(text = "button with unstable lambda")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment