You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The child component will get the latest dom info in watch after the test property has changed,but it cannot get the latest dom. The {flush: "post"} config not work
Because when already flushing,no sorting of new incoming watchers based on the post attribute
// if already flushing, splice the watcher based on its id
// if already past its id, it will be run next immediately.
let i = queue.length - 1
while (i > index && queue[i].id > watcher.id) {
i--
}
queue.splice(i + 1, 0, watcher)
The text was updated successfully, but these errors were encountered:
someBrown
pushed a commit
to someBrown/vue
that referenced
this issue
Dec 9, 2022
Version
2.7.14
Reproduction link
codesandbox.io
Steps to reproduce
https://codesandbox.io/s/quizzical-grass-85c9zw?file=/src/components/HelloWorld.vue
What is expected?
if watch has set flush to 'post', it's callback should be called after
dom rerender,so that the callback function can get the latest dom
What is actually happening?
The parent component passes a test property to the child component,and the parent component will change this test property when the button is clicked
The child component will get the latest dom info in watch after the test property has changed,but it cannot get the latest dom. The {flush: "post"} config not work
Because when already flushing,no sorting of new incoming watchers based on the post attribute
The text was updated successfully, but these errors were encountered: