Skip to content

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 ​

PropertyModifierTypeDescriptionDefined in
activereadonlybooleanFalse when an activeWhen of the node or an ancestor turns it off.core/src/nodes/node-types.ts:97
dirtyreadonlybooleanTrue when a value in the subtree differs from its initial value.core/src/nodes/node-types.ts:84
errorsreadonlyreadonly FormError[]The errors visible now. Which errors are visible depends on the display mode.core/src/nodes/node-types.ts:75
failedChecksreadonlyreadonly FailedCheck[]Checks in the subtree whose run threw.core/src/nodes/node-types.ts:92
initialValuereadonlyValue | undefinedThe value dirty and reset compare against.core/src/nodes/node-types.ts:73
requestingreadonlybooleanTrue 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
requiredreadonlybooleanTrue 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
submitCountreadonlynumber-core/src/nodes/node-types.ts:95
submittingreadonlybooleanTrue while a submit of this node runs.core/src/nodes/node-types.ts:94
touchedreadonlybooleanTrue when a node in the subtree has lost focus or an array in it has been edited.core/src/nodes/node-types.ts:86
validreadonlybooleanTrue when the subtree has no error, visible or not, and no check that threw.core/src/nodes/node-types.ts:77
validatingreadonlybooleanTrue 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
valuereadonlyValueThe draft value.core/src/nodes/node-types.ts:71

Released under the MIT License.