Hex Core JS
    Preparing search index...

    Type Alias SubFormState<FV>

    SubFormState: { initialIndex: number | null; key: string } & Omit<
        FormValuesStateData<FV>,
        "formValues",
    > & FormFormatStateData<FV> & Omit<
        FormEditingStateData<FV>,
        "formType" | "editMode" | "formEditMode" | "disabled",
    > & FormElementsStateData<FV> & Omit<
        FormValidationStateData<FV>,
        "validationDisplayPolicy",
    > & FormSubFormStatesStateData<FV> & {
        _postSubmit: SubmitCallbacks<FV>["postSubmit"];
        _preSubmit: SubmitCallbacks<FV>["preSubmit"];
    } & FormLockStateData

    A form state that is part of another form state.

    SubFormState is a trimmed-down version of a whole form state that stores only the data and none of the higher-level functionality. Omits certain data that are either global (e.g. formType) or contained in another value (e.g. formValues).

    Type Parameters

    Type Declaration

    • initialIndex: number | null

      The index of the item in the parent field's initial value (not necessarily the index where the dependent form was initially rendered: If the item is a new item, then initialIndex is null).

    • key: string

      The unique identifier for the item. For rendering purposes.

    • _postSubmit: SubmitCallbacks<FV>["postSubmit"]
    • _preSubmit: SubmitCallbacks<FV>["preSubmit"]