- Remove granular field updates
- Fix potential issue with registering validators
- Save bytes
- Fix issue where changing the
fieldId
wouldn't rebind thevalidate
/onChange
(relates to arrays and insertions) - Fix reordering of
errors
andtouched
with array operations
- Add second argument to
useField
used to validate fields.
- Every
Form
isntance will now have it's ownemitter
- Validation will now be checked for equality and not emit if it hasn't changed deeply
- Perf improvements (internal emitter uses Set)
- Size improvements
- Remove the deprecation of
Form
- Add render props to
HookedForm
- The
useSpy
now returns an object with the observed Field data{ value, error, touched }
- 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 />
validateOnBlur
is stilltrue
inForm
to support moving over.
- The
Form
HOC has been deprecated in favor of the<HookedForm />
component.
<HookedForm>
component which abstracts the<form>
field away, you can pass in props just as you would normally do.onSuccess
now receives aSuccessBag
containingresetForm
useSpy
hook that allows you to spy on arbitrary form values and execute a callback with access to context.
- Update onSubmit to contain an object of props and errorSetters
- Rename FieldArray.render to FieldArray.children
- Use
use-context-selector
to drastically improve performance
- Performance improvements
- A lot of internal changes with a bundle size goal.
- don't pass validate values and touched to the Component, if needed they can be retrived through useFormConnect.
- lose
Element
postfix on operations - values -> value
- resetField got depreacated
- resetField got deprecated
- update redundant if-statements by Pruxis in PR #22
- provide useFormConnect to replace deprecated feature
- rewrite to a more performant deriveInitial
- add isDirty param injected in context and formWrapper
- fix bug where toPath would not work with two numbers
- Bug fixed where an array of non-object values would fail in deriving initial