Skip to content

Support Debounced Form Validation when validateAfterLoad is true #728

Open
@NWaterbury

Description

@NWaterbury

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions