form-graph
    Preparing search index...

    Function useField

    • Subscribes to one field. Returns null when the field is not active in the current branch. Inside a , name is the bare member key — the element path prefixes it, so the same control works at the root and in any element.

      The subscription only fires when the field's snapshot reference changes, and diffSnapshot preserves that reference for structurally-unchanged fields — so a full recompute re-renders only the controls whose data actually moved.

      Type Parameters

      • Value = unknown
      • Meta = unknown

      Parameters

      • store: AnyStore | null
      • name: string

      Returns FieldSnapshot<Value, Meta> | null