Vue onBeforeUpdate run after DOM update #12770
Replies: 1 comment 2 replies
-
It's not clear to me why That aside, the callback for Hopefully that explains what you're seeing, but it's difficult for me to be sure because I can't run the code myself. Posting pictures of code is not ideal as it makes it much more difficult for people to help you. If you posted the code as text then we could try running it ourselves. Or, even better, you could create a minimal reproduction at https://play.vuejs.org/. |
Beta Was this translation helpful? Give feedback.
-
In a Nuxt app,when I change isChecked=true, Child's onBeforeUpdate hook is triggered. However, when I read the child DOM's clientWidth inside onBeforeUpdate, I get the width after the DOM update instead of before. Is this the expected behavior
Beta Was this translation helpful? Give feedback.
All reactions