Dynamic Fields not working after using Form.useForm()
rizshivalli opened this issue · comments
Dynamic Fields not working after using Form.useForm()
In examples-v4,the case Dynamic Fields:
https://codesandbox.io/s/jolly-easley-9iksb?file=/src/App.js
earlier when it was FOrmBuilder.useForm() it was working fine but now since it has changed to Form.useForm() the dynamic fields has stopped working.
please take a look.
I Have found the solution in the example given at https://rekit.github.io/antd-form-builder/examples-v4/#dynamic-fields
const forceUpdate = FormBuilder.useForceUpdate();
and
<Form
form={form}
onValuesChange={forceUpdate} ></From>