Open awhitford opened 7 months ago
Thank you for creating this issue! Do you know how to fix it?
I can't quite figure it out. Looks like the Field: (props) => Field({ ...props, of: form }),
line:
function useForm(options) {
const form = useFormStore(options);
return useMemo(
() => [
form,
{
Form: (props) => Form({ ...props, of: form }),
Field: (props) => Field({ ...props, of: form }),
FieldArray: (props) => FieldArray({ ...props, of: form })
}
],
[form]
);
}
And they reference this Bug: too hard to fix "Cannot update a component from inside the function body of a different component.". I tried upgrading to the latest dependencies thinking that maybe it would solve it or perhaps give a better error message, but doesn't change the issue.
I am currently focused on Valibot and also plan to rewrite Modular Forms later this year. That's why I'm not spending that much time on the current code of the library. Sorry for that.
Steps to Reproduce
Check the JavaScript Console and you will see an error like: