Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created August 12, 2022 01:20
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 skydoves/416fca5e1ab8e18350e9026913479e42 to your computer and use it in GitHub Desktop.
Save skydoves/416fca5e1ab8e18350e9026913479e42 to your computer and use it in GitHub Desktop.
state_holding_call_site
setContent {
val viewModel = ViewModel()
Column {
Text("This is a cool column I have")
CustomButton(stateHoldingClass = viewModel.stateHoldingClass) {
viewModel.stateHoldingClass.counter++
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment