-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.x] Async validate #69
base: main
Are you sure you want to change the base?
Conversation
Hey @timacdonald , thanks for the hard work! |
It will cover all packages. Still a WIP. |
Hello, Is there any progress on this? It's been almost a month since this has been in Draft. It would be very helpful to have this feature implemented. I have an application in production that isn't working perfectly because I am waiting on this feature. Thank you. |
@djurovicigoor, still working on this, just had a few other things that were a higher priority. This one is back on my list and being pushed forward. |
packages/core/src/validator.ts
Outdated
if (isAxiosError(error) && isCancel(error)) { | ||
throw new RequestCancelled('An in-flight Precognition request was cancelled.', { cause: error }) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we resolve this and then never resolve the latestPromise
instead of throwing an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if this will fix #73 as well. This seems very much related.
if (touched.length === 0) { | ||
return | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now handled in the before
callback, which makes better sense to colocate things.
No description provided.