Form composition hooks leading to dependency cycle #1770
-
Hi there, I've been making a form using the form composition hooks defined in the docs: This basically leads to:
This creates a dependency cycle -> the field needs useFieldContext whilst the createFormHook needs the field, which I'd like to avoid if at all possible. This has led to a bug whereby a direct import of the field in another file leads to an error: Any suggestions here beyond having everything in one file? Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The contexts can be in their own file, which will resolve the cycle completely.
|
Beta Was this translation helpful? Give feedback.
The contexts can be in their own file, which will resolve the cycle completely.