Skip to content

Change form lib

Mael Gaonach requested to merge forms-lib into main

The current form validation and state management library (react-form-hooks) was not working very well with arrays.

Tested with formik and react-final-form and settled for react-final-form.

Added a layer of abstraction so that the lib can be changed very easily: only core is aware of what library is used, everywhere else is just using FormObjectDescription to describe the form fields, structure and validation, and RenderForm to render it (both of these are implemented in core).

Merge request reports

Loading