Releases: witbybit/react-recoil-form
Releases · witbybit/react-recoil-form
v0.7.5
- Significant increase in performance for setting field values using setFieldValues method
- Add props to Field component for better parity with useField hook
- Add useFormValuesAndExtraInfos, useInitialValues hook
- Bug fixes
v0.6.0
For useFieldArray(), validateData would not trigger field validation earlier. This has now been fixed in v0.6
v0.5.1
- Add type safety for getValues and other functions
- Take formId as an optional parameter for useFormContext() to allow managing another form's data instead of just the current form
v0.5.0
- Added resetInitialValues in useFormContext()
- Removed polyfill for matchAll (this reduced package size significantly but won't work on react-native currently)
- Fixed several security alerts.
- Moved to latest tsup, recoil vite and storybook
0.5.0-beta.1
- Added resetInitialValues in useFormContext()
- Removed polyfill for matchAll (this reduced package size significantly but won't work on react-native currently)
- Cleaned up dependencies and fixed several security alerts. Moved to latest tsup, vite and storybook
v0.4.0
Updated useFieldWatch to work even when the watched field is not mounted. This is useful for multi-step forms
v0.3.3
- getValue() fixed to return value based on initial value if field has not been mounted
- setValue() fixed to ensure that once it's called for a field that hasn't been mounted yet, the value later should not be overridden by initial values.
v0.3.2: Merge pull request #12 from witbybit/use-form-fix
Add validateAllFields, getValues in useForm() hook
v0.3.1
Fix validation function to avoid infinite loop with the help of deep equality check for value, otherParams
v0.3.0
- Migrate to tsup
- Move to storybook for examples
- Support for custom form id
- Add support for skipUnusedInitialValues prop in useForm() to avoid extra initial values in final form values
- Add validateCallback to allow validate function to be changed assuming the dependencies are handled properly by the caller. Note that validate prop in useField cannot be changed to avoid infinite render
- Bug fixes