-
Hi, I have a form with a model that is being initialized as shown below.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @mdesousa ,
Your example of code may suggest that this happens due to the change of |
Beta Was this translation helpful? Give feedback.
Hi @mdesousa ,
onSubmit
triggers renders due to the fact that it's setting thesubmitting
state, but that should not be causing the behavior that you have described.Your example of code may suggest that this happens due to the change of
model
variable in the component's body which you generally would want to avoid or keep a stable reference to it (wrap in auseMemo
for example). Would you mind expanding your sample of code or creating a reproduction in a CodeSandbox?