You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
As stated in the doc, with the following code, each onChange reflects on the fields object and causes the component to rerender.
In my scenario I can notice an evident lag, every time the user types a character in an input linked to the fields.
Let's suppose my fieldArray looks something like:
I'd like to watch only when value1 changes and not every possible value, in order to improve the user experience.
Is there a native way to do that?
In alternative it would be great to have a reload function I can safely run on the inputs linked to value1, like:
const { fields, append, reloadFields } = useFieldArray({
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions