Skip to content

$patch-ing pinia store in test #2381

Closed Answered by posva
hewIngram asked this question in Help and Questions
Discussion options

You must be logged in to vote

The question I have is it appears that I can just await the $patch itself and get the same result as using nextTick().
Is this valid or sensible?

Awaiting $nextTick() is better as $patch() doesn't return a promise, it just turns out the pending ticks, including the dom updates, are able to run.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hewIngram
Comment options

Answer selected by hewIngram
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants