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 use promise result in custom validation? Now I get promise in error, so it's being interpreted as error, even if promise fulfilled with 'null'
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
-
Is it possible to use promise result in custom validation? Now I get promise in error, so it's being interpreted as error, even if promise fulfilled with 'null'
validator={async (file: File) => { return await customValidation.then((res) => res); }}
Beta Was this translation helpful? Give feedback.
All reactions