react-forms
react-forms copied to clipboard
Should Field be renderable outside of Form?
I was implementing proper Field
behavior when rendered/removed from FieldsArray
(mounting/unmounting, to be precise) and noticed that Field
cannot be rendered outside of Form
.
But if I'm correct, it's as easy as adding formId
prop and updating FormId
getter to take that into account, not just context.FormId
.
This is what BaseContainer
does, inherently BaseFormButton
does and Form
itself does. Maybe setting formId
would enable some scenarios that we didn't yet encounter?