import { type UseFieldArrayUpdate } from "https://deno.land/x/netzo@0.5.63/deps/react-hook-form.ts";
Update field/fields at particular position.
Examples
Example 1
Example 1
<button type="button" onClick={() => update(1, { name: "data" })}>Update</button>
<button
type="button"
onClick={() => update(1, [{ name: "data" }, { name: "data" }])}
>
Update
</button>
Type Parameters
TFieldValues extends FieldValues
optional
TFieldArrayName extends FieldArrayPath<TFieldValues> = FieldArrayPath<TFieldValues>definition: (index: number, value: FieldArray<TFieldValues, TFieldArrayName>) => void