submitFields function

Module @runic-artifex/views in @runic-artifex/views 0.23.0

function submitFields<T>(fields: readonly FormField[], command: () => T | PromiseLike<T>, options?: FormSubmitOptions, read?: (index: number) => FormFieldState): Promise<FormSubmitResult<T>>;

Commits every field, waits for their writes and, unless a value did not reach the View, runs command. A draft that a transport failure kept is written again first (retry). read(index) is the state of a field now; the framework bindings' forms use it, and busy is theirs to report.