We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4172196 commit 0c47e61Copy full SHA for 0c47e61
Sources/FormHook/Form.swift
@@ -447,7 +447,7 @@ extension FormControl {
447
let (isValid, errors) = await withTaskGroup(of: KeyValidationResult.self) { group in
448
var errors = instantFormState.errors
449
for (key, field) in fields {
450
- group.addTask {
+ _ = group.addTaskUnlessCancelled {
451
let (isValid, messages) = await field.computeMessages()
452
return KeyValidationResult(key: key, isValid: isValid, messages: messages)
453
}
0 commit comments