Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/react-hook-form.ts>UseFieldArrayUpdate

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
type alias UseFieldArrayUpdate
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

<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