Avoiding re-render onBlur when using FormContext #2061
-
Hi, I am having hard time understanding why every blur on any input causes all components including the container to re-render. My structure is bit complex with multiple levels of inputs. Please check the below structure,
Now, whenever I focus or blur any field, the whole form re-renders. I tried to overcome this with approach given here, . |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
need some more context. perhaps a codesandbox for your example (simple one not the whole app) which mode are u using too. |
Beta Was this translation helpful? Give feedback.
need some more context. perhaps a codesandbox for your example (simple one not the whole app) which mode are u using too.