BearStudio/formiz

Issue when setFieldsValues is called on mount

ivan-dalmet opened this issue · 1 comments

Describe the bug
The setFieldsValues have issues when called on mount.
See #77 (reply in thread)

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/fancy-cherry-ip1cr?file=/src/useDependentField.js
  2. Change the 100 to 0 in the setTimeout (or remove the setTimeout)
  3. The fields on the first step are not required anymore

Expected behavior
The fields should still be required even with setFieldsValues called on mount.

Fixed in @formiz/core@1.8.0