Skip to content

The long wait

Compare
Choose a tag to compare
@JoviDeCroock JoviDeCroock released this 28 Nov 10:54

Breaking

  • The components have made place for a full hooks implementation (Field, FieldArray and Error are gone).
  • useFieldArray.remove now only accepts a numerical index instead of an object or an index.
  • validateOnBlur is now default false in <HookedForm /> in the Form HOC it will remain default true

Deprecation

The Form HOC is deprecated in favor of the <HookedForm /> component

Features

  • <HookedForm> component which abstracts the <form> field away, you can pass in props just as you would normally do.
  • initialErrors are supported on <HookedForm>
  • onSuccess now receives a SuccessBag containing resetForm
  • useSpy hook that allows you to spy on arbitrary form values and execute a callback with access to context.

Internals

We have moved to an internal emitter which is winning us a lot in the performance and bundle size area's

Concluding: performance++ and size -300Bytes (even with the added features)