Interface: NodeState<Value>
Defined in: core/src/nodes/node-types.ts:69
A snapshot of a node. It keeps its reference until something about the node changes.
Type Parameters
| Type Parameter |
|---|
Value |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
active | readonly | boolean | False when an activeWhen of the node or an ancestor turns it off. | core/src/nodes/node-types.ts:97 |
dirty | readonly | boolean | True when a value in the subtree differs from its initial value. | core/src/nodes/node-types.ts:84 |
errors | readonly | readonly FormError[] | The errors visible now. Which errors are visible depends on the display mode. | core/src/nodes/node-types.ts:75 |
failedChecks | readonly | readonly FailedCheck[] | Checks in the subtree whose run threw. | core/src/nodes/node-types.ts:92 |
initialValue | readonly | Value | undefined | The value dirty and reset compare against. | core/src/nodes/node-types.ts:73 |
requesting | readonly | boolean | True while a check's run or a schema that answers asynchronously runs in the subtree. Part of validating. | core/src/nodes/node-types.ts:90 |
required | readonly | boolean | True when the schema reports an error for an empty value here. Groups and arrays are never required, and neither a group's validate rule nor a schema that answers asynchronously makes a node required. | core/src/nodes/node-types.ts:82 |
submitCount | readonly | number | - | core/src/nodes/node-types.ts:95 |
submitting | readonly | boolean | True while a submit of this node runs. | core/src/nodes/node-types.ts:94 |
touched | readonly | boolean | True when a node in the subtree has lost focus or an array in it has been edited. | core/src/nodes/node-types.ts:86 |
valid | readonly | boolean | True when the subtree has no error, visible or not, and no check that threw. | core/src/nodes/node-types.ts:77 |
validating | readonly | boolean | True while a check in the subtree waits after its trigger or runs, or a schema in it answers asynchronously. | core/src/nodes/node-types.ts:88 |
value | readonly | Value | The draft value. | core/src/nodes/node-types.ts:71 |