Replies: 3 comments 3 replies
-
thanks, you are right will sort out the doc. |
Beta Was this translation helpful? Give feedback.
-
feel free to send us a pr next time too. |
Beta Was this translation helpful? Give feedback.
-
I forgot to mention that this is a change from earlier pre-V6 versions. I had a test where I had a mock function just to check whether the validation was being called, and it worked in earlier versions: const validate = jest.fn((values) =>
({
values,
errors: {},
})
); Suddenly, it stopped working because of the So, I'd love to make a PR, but which one? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In API, the description for the
resolver
says that it should be a function returning an object withvalues
anderrors
properties but it actually expects a Promise returning such an object.If a resolver returns an object, the
then
at validateResolver fails.I don't know what the intent was but my guess is that it should either:
resolver
should return a PromisePromise.resolve
so it can return either.Beta Was this translation helpful? Give feedback.
All reactions