Accessing root fieldset via future useFormMetadata
#1036
luchsamapparat
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Hi @luchsamapparat, looks like there is a bug in the types definition. The name should be optional. The implementation accepts an Would you be interested in submitting a PR? The change would just be on this line: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Our app has quite complex forms. Usually, we call
useFormat the top in our route component, but rendering the fields happens somewhere deep in our component tree. Down there, we useuseFormMetadata().getFieldset()to get field names like this:With the future
useFormMetadatahook,getFieldsetrequires anameargument. Am I missing something or is there no other way to access the form's root fieldset besides usinguseForm?Beta Was this translation helpful? Give feedback.
All reactions