ModuleAction

@Serializable
abstract class ModuleAction(moduleTag: KClass<*> = KClass::class)(source)

Base class for module actions.

Actions are events that describe changes in your application. They are dispatched to the store to trigger state updates via reducers.

Example:

sealed class CounterAction : ModuleAction(CounterModule::class) {
data object Increment : CounterAction()
data object Decrement : CounterAction()
data class SetCount(val value: Int) : CounterAction()
}

Parameters

moduleTag

The KClass of the module that handles this action

Constructors

Link copied to clipboard
constructor(moduleTag: KClass<*> = KClass::class)