storeOf

fun <D, T, M> storeOf(initialData: D, validation: Validation<D, T, M>, id: String = Id.next()): ValidatingStore<D, T, M>

Convenience function to create a simple ValidatingStore without any handlers, etc. The created Store validates its model after every update automatically.

Parameters

initialData

first current value of this Store

validation

Validation instance to use at the data on this Store.

id

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