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

Feature request - add a tracked isValidating flag for properties with async validations #282

Open
BryanCrotaz opened this issue Feb 8, 2021 · 1 comment

Comments

@BryanCrotaz
Copy link

Feature request - add a tracked isValidating flag for properties with async validations

This will allow controls to show a spinner before showing a tick or cross icon for example.

@snewcomer
Copy link
Collaborator

@BryanCrotaz So right now, isValidating is a function. Is it possible for you to set flags before and after the async validators are run to show the relevant icon?

https://github.com/validated-changeset/validated-changeset/blob/233986781775da24c1c2d91cc7d92e580bcf8ef8/src/index.ts#L712

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

No branches or pull requests

2 participants