Skip to content

Pristine flag: how to wait until data is loaded before running validatorObserver #3268

Answered by logaretm
lucianobosco asked this question in Q&A
Discussion options

You must be logged in to vote

This $nextTick won't work here because your data is loaded asynchronously.

You have two options here:

Either you reset the form once the data is loaded (reset may need to be wrapped with $nextTick)

Or hide the form with v-if until the data is fully loaded from the API

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lucianobosco
Comment options

@logaretm
Comment options

Answer selected by logaretm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3267 on April 18, 2021 01:09.