Function: useFormNode()
Call Signature
ts
function useFormNode<NodeDefinition>(definition): NodeOf<NodeDefinition>;Defined in: react/src/node-context.tsx:50
Returns the nearest provided node of this definition, typed by it. It does not re-render the component. Throws when no ancestor provided one.
Type Parameters
| Type Parameter |
|---|
NodeDefinition extends Definition |
Parameters
| Parameter | Type |
|---|---|
definition | NodeDefinition |
Returns
NodeOf<NodeDefinition>
Call Signature
ts
function useFormNode(): AnyGroupNode;Defined in: react/src/node-context.tsx:52
Returns the nearest provided node of any definition, loosely typed. Throws when no ancestor provided one.