Д
Size: a a a
Д
IK
AS
Д
fun mainReducer(currentState: State, msg: Msg): State {
return when (msg) {
is ComponentMessage -> {
componentReducer(currentState, msg)
}
else -> currentState
}
}
Kd
Д
Kd
Kd
Д
fun mainReducer(currentState: MainState, msg: Msg): State {
return when (msg) {
is ComponentMessage -> {
currentState.copy(
componentState = componentReducer(currentState, msg)
)
}
else -> currentState
}
}
Д
is ComponentMessage -> {
currentState.copy(
componentState = componentReducer(currentState, msg)
)
}
Д
AD
fun mainReducer(currentState: MainState, msg: Msg): State {
return when (msg) {
is ComponentMessage -> {
currentState.copy(
componentState = componentReducer(currentState, msg)
)
}
else -> currentState
}
}
Д
Д
AD
AD
Д
AD
AD
AI