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
-
I'm trying to set the value of field using
form.setFieldValue
function as shown in the Listeners section of the Basic Concepts Page and in this discussion, Shouldn't form.setFieldValue trigger the field validation by default? But I'm seeing the following compilation error:Argument type (prev: any) => boolean is not assignable to parameter type Updater<DeepValue<{checked: false}, ".checked">>
My example:
I understand that I need to pass a function for the Updater, but I'm not sure what the arguments for that should be or what should be returned.
I've tried the following:
But still saw the error. Any advice would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions