Skip to content

Instantly share code, notes, and snippets.

@vitoksmile
Created February 11, 2025 18:05
Show Gist options
  • Select an option

  • Save vitoksmile/371cbcdb1d965dc3d997d385129795dd to your computer and use it in GitHub Desktop.

Select an option

Save vitoksmile/371cbcdb1d965dc3d997d385129795dd to your computer and use it in GitHub Desktop.
ComposeHints
@Stable
class HintAnchorState internal constructor(
internal val hint: Hint,
) {
//...other states here
}
@Composable
fun rememberHintAnchorState(hint: Hint): HintAnchorState {
return remember(hint) {
HintAnchorState(hint)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment