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
Is it possible to add a new setting which behave just like shouldUnregister: false, but will only return the input showed in the screen when submit/watch/getValue. Maybe called shouldUnregister: 'onSupervise' or something else has the same meaning.
The benefit of this idea are:
Input Value would be reserved in conditional rendering, which is the advantage of shouldUnregister: false.
User would not need to pick out the values not showing on the screen, which is the advantage of shouldUnregister: true.
And also I think the maintenance of this feature might be easier than shouldUnregister: false.
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.
-
Is it possible to add a new setting which behave just like
shouldUnregister: false
, but will only return the input showed in the screen when submit/watch/getValue. Maybe calledshouldUnregister: 'onSupervise'
or something else has the same meaning.The benefit of this idea are:
shouldUnregister: false
.shouldUnregister: true
.And also I think the maintenance of this feature might be easier than
shouldUnregister: false
.Beta Was this translation helpful? Give feedback.
All reactions