storeOf

fun <D> storeOf(initialData: D, job: Job, id: String = Id.next()): Store<D>
fun <D> WithJob.storeOf(initialData: D, job: Job = this.job, 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

job

Job to be used by the Store

id

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