storeOf

fun <D> storeOf(initialData: D, id: String = Id.next()): RootStore<D>

Convenience function to create a simple RootStore without any handlers, etc.

Parameters

initialData

first current value of this Store

id

id of this store. Ids of SubStores will be concatenated.