Version
Is your feature request related to a problem? Please describe.
Is there any way in v3 of vee-validate to get the flags of fields outside of a template? I would like to read the state of a field (touched, dirty etc) in code, not in the template. To me it looks like there is no way to do this in the new version?
Describe the solution you'd like
One solution could be to have the observer or provider emit events when flags change.
The programmatic API still needs some work to be useful like mentioned here #2248 #2283
as a workaround, you could use ref and access them on your own.
for both providers and observers:
this.$refs.provider.flags // contains flags.
this.$refs.observer.flags // contains flags.
This is very handy, I used this.$refs.observer.ctx.changed to check if a form has changed, and if not, to not send an API request.
Closing since a workaround exists and the alternative is not worth implementing.
Most helpful comment
The programmatic API still needs some work to be useful like mentioned here #2248 #2283
as a workaround, you could use
refand access them on your own.for both providers and observers: