Skip to content

Instantly share code, notes, and snippets.

@Skyyo
Created October 2, 2022 13:10
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/27141c378c097092220504baa695b87e to your computer and use it in GitHub Desktop.
Save Skyyo/27141c378c097092220504baa695b87e to your computer and use it in GitHub Desktop.
perf_snippet_6
@Composable
fun UnstableLambdaScreen() {
val focusRequester = LocalFocusManager.current
Column {
// unstable lambda results in unskippable Button
Button(onClick = { focusRequester.clearFocus() }) {
Text(text = "button with unstable lambda")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment