-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
watch callback is run twice when calling createApp
in the callback
#6614
Comments
@LinusBorg Both Vant's Toast component and Arco-Design's Message component are implemented using Vue.render. Here is the core code. demo Duplicate of #6609 |
I'll keep this issue open and keep #6609 closed because this issue here as a minimal reproduction out of the gate and focusses on the actual issue. |
createApp
createApp
in the callback
related to core/packages/runtime-core/src/renderer.ts Lines 2333 to 2334 in 78c199d
|
@yyx990803 I can still reproduce the issue on a deployed app (Vue 3.2.39 in production mode) but it's very difficult to create a reproduction as it seems to be random. I guess there is a timing or race condition at play... Here is a screenshot of requests failing becase watchers are being executed while unmounting components after changing route: I will continue to investigate and try to narrow the issue down. |
Vue version
3.2.38
Link to minimal reproduction
SFC Playground
Steps to reproduce
What is expected?
What is actually happening?
Two nodes will appear!!!
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: