createStore
Creates a new Store instance using the DSL builder.
The store is the central piece of the Reaktiv architecture. It manages state, handles actions, and coordinates between different modules.
Example:
val store = createStore {
module(CounterModule)
module(UserModule)
module(navigationModule)
middlewares(loggingMiddleware, analyticsMiddleware)
coroutineContext(Dispatchers.Default)
persistenceManager(PlatformPersistenceStrategy())
}Content copied to clipboard
Return
The configured Store instance
Parameters
block
DSL block for configuring the store