Hex Core JS
    Preparing search index...

    Function useAddRemoveSubFormState

    • Creates and returns onAdd and onRemove functions for a SubFormField component. These functions combine relevant functions from fieldSubFormStatesState and fieldState to provide fully functional versions.

      Type Parameters

      Parameters

      Returns {
          addItem: (item?: TypeOrFunction<SFV>) => void;
          removeItem: (index: number) => void;
      }