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

Support Debounced Form Validation when validateAfterLoad is true #728

Open
NWaterbury opened this issue Feb 28, 2023 · 0 comments
Open

Support Debounced Form Validation when validateAfterLoad is true #728

NWaterbury opened this issue Feb 28, 2023 · 0 comments

Comments

@NWaterbury
Copy link

NWaterbury commented Feb 28, 2023

Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...
    • [ X] feature request
  • Do you want to request a feature or report a bug?
  • What is the current behavior?
    When the form loads, and validateAfterLoad is true, validate is called both from the mounted hook and the model watcher.

  • What is the expected behavior?
    Validation does not occur twice, but instead is only done once.

  • What is the motivation / use case for changing the behavior?
    This is especially useful when using an async validator to query an endpoint
  • Please tell us about your environment:

    • Version: [2.3.4]
    • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    • Language: [all | TypeScript X.X | ES6/7 | ES5 | Dart]

Sample code:
image

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

1 participant