formContext question #1732
-
Hello again! This is another question about form context! 😅 I use antdesign and custom made input that are deeply nested, so for simplification I am using the form context hook to access register. I set the form as written below:
I am using the onBlur mode, and I can see a global rerender of the form on each blur event. Sorry if I missed something somewhere and hope you can help me! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This is expected behavior. We are using React Context API underneath, for large form I would prefer to compose and pass props down then form context. |
Beta Was this translation helpful? Give feedback.
-
@bluebill1049 In case of composing the form with components and avoiding the formcontext, how would one pass the errors, formState etc to the nested components? |
Beta Was this translation helpful? Give feedback.
This is expected behavior. We are using React Context API underneath, for large form I would prefer to compose and pass props down then form context.