Skip to content

Instantly share code, notes, and snippets.

@thearchetypee
Created April 23, 2023 08:52
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 thearchetypee/2fbfc0ac288849490eda1c0b8a66f525 to your computer and use it in GitHub Desktop.
Save thearchetypee/2fbfc0ac288849490eda1c0b8a66f525 to your computer and use it in GitHub Desktop.
class Ref(var value: Int)
@Composable
inline fun LogCompositions(tag: String) {
val ref = remember { Ref(0) }
SideEffect { ref.value++ }
Logger.log("$tag Compositions: ${ref.value}")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment