Why nesting a component inside a component w/ Controller leads to infinite loop? #2988
-
Just see the code attached. https://codesandbox.io/s/react-hook-form-infinite-loop-swmii?file=/src/App.js If I move the Error:
|
Beta Was this translation helpful? Give feedback.
Answered by
bluebill1049
Sep 23, 2020
Replies: 1 comment 1 reply
-
i think because you shouldn't place inner-component insider component, this make component keep mount and unmount during render. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vladev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i think because you shouldn't place inner-component insider component, this make component keep mount and unmount during render.