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
Hi!
I'm running into an issue where I have a form level validator that runs on change. This is our preferred way of validating as we have a few complex fields that interact with many others.
The problems comes when we have many fields that have errors. (the user has the ability to duplicate data and than later fix errors in each copy one by one). If a field changes the validator runs and validates the whole form, so far so good. But this causes all fields that got an error to re render even if the error it has did not actually change.
This can mean 70+ input componnes are re rendered when a singe input changes. This becomes even worse by the fact that our time input handles each keystroke as a change event.
Is there any way to:
a) make tanstack form only update if the actual error changes
b) have the inputs only subscribed to the input value and not the whole field?
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.
-
Hi!
I'm running into an issue where I have a form level validator that runs on change. This is our preferred way of validating as we have a few complex fields that interact with many others.
The problems comes when we have many fields that have errors. (the user has the ability to duplicate data and than later fix errors in each copy one by one). If a field changes the validator runs and validates the whole form, so far so good. But this causes all fields that got an error to re render even if the error it has did not actually change.
This can mean 70+ input componnes are re rendered when a singe input changes. This becomes even worse by the fact that our time input handles each keystroke as a change event.
Is there any way to:
Beta Was this translation helpful? Give feedback.
All reactions