The long wait
Breaking
- The components have made place for a full hooks implementation (
Field,FieldArrayandErrorare gone). useFieldArray.removenow only accepts a numerical index instead of an object or an index.validateOnBluris now defaultfalsein<HookedForm />in theFormHOC 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.initialErrorsare supported on<HookedForm>onSuccessnow receives aSuccessBagcontainingresetFormuseSpyhook 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)