Jacob Rhoda
11/17/2023, 9:00 PMdata class MyState(
val myProperty: String?
)
enum class MySideEffect
class MyViewModel(): ViewModel(), ContainerHost<MyState, MySideEffect> {
override val container: Container<MyState, MySideEffect> = container(MyState(""))
fun updateMyProperty(newValue: String?) = intent { reduce { state.copy(myProperty=newValue) } }
}