Set Error for Nested Object #11009
Unanswered
fadi-george
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have some field that looks like:
Id either want to set 1 error for the whole group or some of nested prop e.g.
setError('someField', { type: 'custom', message: 'some message'}); or
setError('someField', { type: 'custom.someName1', message: 'some message'});
but typescript will complain e.g.
Beta Was this translation helpful? Give feedback.
All reactions