store Of
fun <D, T, M> storeOf(initialData: D, validation: Validation<D, T, M>, metadataDefault: T, 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
fun <D, M> storeOf(initialData: D, validation: Validation<D, Unit, M>, id: String = Id.next()): ValidatingStore<D, Unit, M>
Convenience function to create a simple ValidatingStore without any metadata and handlers.
The created Store validates its model after every update automatically.