Skip to content

Releases: witbybit/react-recoil-form

v0.7.5

15 Jan 06:30
Compare
Choose a tag to compare
  • 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

29 Jun 08:46
Compare
Choose a tag to compare

For useFieldArray(), validateData would not trigger field validation earlier. This has now been fixed in v0.6

v0.5.1

09 Jun 07:17
bffba08
Compare
Choose a tag to compare
  • 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

21 Apr 13:49
Compare
Choose a tag to compare
  • 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

20 Apr 20:00
Compare
Choose a tag to compare
0.5.0-beta.1 Pre-release
Pre-release
  • 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

17 Mar 21:11
Compare
Choose a tag to compare

Updated useFieldWatch to work even when the watched field is not mounted. This is useful for multi-step forms

v0.3.3

08 Feb 12:51
Compare
Choose a tag to compare
  • 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

22 Nov 15:52
0593a8f
Compare
Choose a tag to compare

Add validateAllFields, getValues in useForm() hook

v0.3.1

08 Nov 14:58
Compare
Choose a tag to compare

Fix validation function to avoid infinite loop with the help of deep equality check for value, otherParams

v0.3.0

13 Oct 21:45
3b92746
Compare
Choose a tag to compare
  • 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