www.fgks.org   »   [go: up one dir, main page]

Skip to content
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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

[1.x] Async validate #69

wants to merge 4 commits into from

Conversation

timacdonald
Copy link
Member

No description provided.

@redwanjamous
Copy link

Hey @timacdonald , thanks for the hard work!
Can you please make sure Inertia is covered in this?
In the original PR (#66 ), react-inertia and vue-inertia packages were not covered.
I tried to cover them in this PR

@timacdonald
Copy link
Member Author

It will cover all packages. Still a WIP.

@djurovicigoor
Copy link

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.

@timacdonald
Copy link
Member Author

@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.

Comment on lines 181 to 194
if (isAxiosError(error) && isCancel(error)) {
throw new RequestCancelled('An in-flight Precognition request was cancelled.', { cause: error })
}
Copy link
Member Author

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?

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.

Comment on lines -283 to -285
if (touched.length === 0) {
return
}
Copy link
Member Author
@timacdonald timacdonald May 23, 2024

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.

@timacdonald timacdonald changed the title Async validate [1.x] Async validate Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants