The long wait
Breaking
- The components have made place for a full hooks implementation (
Field
,FieldArray
andError
are gone). useFieldArray.remove
now only accepts a numerical index instead of an object or an index.validateOnBlur
is now defaultfalse
in<HookedForm />
in theForm
HOC it will remain defaulttrue
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 aSuccessBag
containingresetForm
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)