awaitNotifiedForm()function

awaitNotifiedForm(store: FormStore<T>, form: HTMLFormElement, pending: PromiseLike<ReactNode | undefined | void>): Promise<boolean>
ParamType
storeFormStore<T>
The FormStore the form is bound to. required
formHTMLFormElement
The underlying HTMLFormElement notices are anchored to. required
pendingPromiseLike<ReactNode
void>
The pending result to await.
Return
Promise<boolean>
A Promise resolving to true on success or false on failure.

Await a pending submit result and publish a success or error notice to a form once it settles.

Examples

await awaitNotifiedForm(store, formEl, pending)