Skip to content

Performance!

Choose a tag to compare

@JoviDeCroock JoviDeCroock released this 17 Mar 09:32

1.6.0

Unofficial Preact X support (all tests succeed but one and this is not due to it not working but due to a scheduling diff in preact and react)!

You can use the components with preact/compat.
The hooks and Form are available in preact

Feature

  • Hooked-form now offers a new feature named useFormConnect, this hooks returns you all the metadata and values for the current form.
  • isDirty is now injected into the form.

Fixes

  • toPath now does not fail when trying to resolve numbers like pins[200] this would return 2 before this fix.

Chores

  • After a great PR by @Pruxis where he replaced all object recreation with mutations in the reduce function to deriveInitial values etc we went even further and made the reduce into a for in.
  • nested if statements have been reduced by inlining them all (these were mainly dev checks)

Planned

  • Deprecate injection of values, touched and validate. This can be asked by using useFormConnect, the main reason behind this being the notion that this rerenders the component very often without too much added value.