All Versions
177
Latest Version
Avg Release Cycle
10 days
Latest Release
737 days ago

Changelog History
Page 14

  • v4.6.2 Changes

    January 21, 2020

    ๐Ÿฑ ๐Ÿž fix field array input dirty while onChange
    ๐Ÿฑ ๐Ÿž fix issue on field array default value compare
    ๐Ÿšš โœŒ๐Ÿป fix issue on clearError and remove codesandbox from npm (#878)

  • v4.6.1 Changes

    January 21, 2020

    ๐Ÿฑ ๐Ÿฅ‚ fix useFieldArray issue with default value (#876)

  • v4.6.0 Changes

    January 21, 2020

    ๐Ÿฑ ๐ŸŽ‡ remove Controller's onBlur and use triggerValidation API instead (#862)
    ๐Ÿฑ ๐Ÿ‘Š fix #833 field array dirty formState (#855)
    ๐Ÿฑ ๐Ÿ˜… close #864 check typeof undefined inline
    ๐ŸŽ ๐Ÿž fix #864 performance api for SSR (#865)
    ๐Ÿฑ ๐Ÿž fix #868 regsiter dep issue (#869)
    ๐Ÿฑ ๐Ÿ˜Š remove extra variable in Controller
    ๐Ÿฑ ๐Ÿ˜ญ fix controller nested error (#863) @cdagli

  • v4.5.6 Changes

    January 19, 2020

    ๐Ÿฑ ๐Ÿ‘ป fix issue around register during useFieldArray (#861)
    ๐Ÿฑ ๐Ÿ‘บ fix assign empty filelist (#849)
    ๐Ÿฑ ๐Ÿ‘Š improve type for control (#853) @kotarella1110

  • v4.5.5 Changes

    January 16, 2020

    ๐Ÿฑ ๐Ÿ˜ฌ fix a mistake on argument order with dirty check on useFieldArray

  • v4.5.4 Changes

    January 16, 2020

    ๐Ÿฑ โค๏ธ improve useFieldArray (#846) @kotarella1110
    ๐Ÿฑ ๐Ÿ”ฆ close #833 dirty value with useFieldArray (#839)

  • v4.5.3 Changes

    January 15, 2020

    ๐Ÿ‘ ๐Ÿ’ช๐Ÿป support name of dot syntax for useFieldArray (#840) @kotarella1110
    ๐Ÿ’ช๐Ÿป allow empty object in prepend, append and insert. (#830) @tanmen
    ๐Ÿฑ ๐Ÿ‘Œ Allows to clean up files (#835) @hekkim
    ๐Ÿฑ ๐Ÿž fix #836 revalidateMode onChange issue (#838)
    ๐Ÿฑ ๐Ÿž fix issue around reset with fieldArray (#842)

  • v4.5.2 Changes

    January 14, 2020

    ๐Ÿฑ ๐Ÿž Fix/use field array with controller and reset (#831)

  • v4.5.1 Changes

    January 14, 2020

    ๐Ÿ›  fix #821 ssr issue (#828)

  • v4.5.0 Changes

    January 14, 2020

    ๐Ÿฑ ๐Ÿ’ˆ useFieldArray (#768)

    • Custom hook for working with Field Arrays (dynamic inputs).

      function Test() { const { control, register } = useForm(); const { fields, append, prepend, remove, swap, move, insert } = useFieldArray( { control, // control props comes from useForm (optional: if you are using FormContext) name: "test" // unique name for your Field Array } );

      return ( <> {fields.map((field, index) => { return ( {/* important: using id from to track item added or removed */} ); })} </> ); }

    Name Type Description
    ๐Ÿšš fields object & { id: string }
    append (obj: any) => void Append input/inputs to the end of your fields
    prepend (obj: any) => void Prepend input/inputs to the start of your fields
    insert (index: number, value: any) => void Insert input/inputs at particular position.
    swap (from: number, to: number) => void Swap input/inputs position.
    ๐Ÿšš move (from: number, to: number) => void
    ๐Ÿšš remove (index?: number) => void