Function
shouldRunAction
(
node: FieldNode,
ignoreValidators?: FormSubmitOptions<unknown, unknown>['ignoreValidators'],
)
Source from the content-addressed store, hash-verified
| 526 | } |
| 527 | |
| 528 | function shouldRunAction( |
| 529 | node: FieldNode, |
| 530 | ignoreValidators?: FormSubmitOptions<unknown, unknown>['ignoreValidators'], |
| 531 | ) { |
| 532 | switch (ignoreValidators) { |
| 533 | case 'all': |
| 534 | return true; |
| 535 | case 'none': |
| 536 | return untracked(node.valid); |
| 537 | default: // Ignore pending validators by default (or specified 'pending'). |
| 538 | return !untracked(node.invalid); |
| 539 | } |
| 540 | } |
| 541 | |
| 542 | /** |
| 543 | * Sets a list of submission errors to their individual fields. |
Tested by
no test coverage detected