Skip to content

watch form values, sync problem #4358

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

You must be logged in to vote

Could be tricky to do that since you will rely on async code executing in order (vee-validate watcher, then yours).

But you can do it with @vueuse/core package with until().

This is not guaranteed, but something like this code work.

await nextTick();
await until(() => meta.value.pending).toBe(false);

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jankrnavek
Comment options

@logaretm
Comment options

Answer selected by jankrnavek
@jankrnavek
Comment options

@logaretm
Comment options

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 #4357 on July 08, 2023 14:39.