Pristine flag: how to wait until data is loaded before running validatorObserver #3268
-
Versions
I trying to find a way to wait until data is fetched before validationObserver runs. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This You have two options here: Either you reset the form once the data is loaded (reset may need to be wrapped with Or hide the form with |
Beta Was this translation helpful? Give feedback.
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