KStateContainer

The StateContainer implementation for Kotlin components. It tracks all the state defined by useState calls for the same component. See KState for how this is being used. This is a purely immutable class and it exposes utilities to create a new instance with either a new piece of state or by changing the value at a given index

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Hosts API to debug state

Link copied to clipboard
val states: List<Any?>

Functions

Link copied to clipboard
open override fun applyStateUpdate(stateUpdate: StateContainer.StateUpdate)
Link copied to clipboard
open override fun clone(): StateContainer
Link copied to clipboard
fun copyAndMutate(index: Int, newValue: Any?): KStateContainer