Skip to content

Creating a Custom Component

Natan Vieira edited this page Dec 24, 2023 · 8 revisions

TBD

Watching Internal State Value Change

Builder API

.updateOnStateChange(state)

Components API

There's a helper function in Components API called watchingStateUpdate that makes your component automatically update on every state value change.

private final MutableIntState someState = watchingStateUpdate(mutableState(1));