storeOf

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

convenience method to create a simple RootStore without any handlers, etc.

Parameters

initialData

the first current value of this Store

id

the id of this store. ids of SubStores will be concatenated.