SubclassStateSimpleSyntax

class SubclassStateSimpleSyntax<S : Any, SE : Any, T : S>(val containerContext: SubclassStateContainerContext<S, SE, T>)

Constructors

Link copied to clipboard
constructor(containerContext: SubclassStateContainerContext<S, SE, T>)

Properties

Link copied to clipboard
val state: T

The current state which can change throughout execution of the orbit block

Functions

Link copied to clipboard
suspend fun <S : Any, SE : Any, T : S> SubclassStateSimpleSyntax<S, SE, T>.postSideEffect(sideEffect: SE)

Side effects allow you to deal with things like tracking, navigation etc.

Link copied to clipboard
suspend fun <S : Any, SE : Any, T : S> SubclassStateSimpleSyntax<S, SE, T>.reduce(reducer: SimpleContext<T>.() -> S)

Reducers reduce the current state and incoming events to produce a new state.