storeOf

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

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

Parameters

initialData

first current value of this Store

id

id of this store. Ids of derived Stores will be concatenated.