-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
The onUnmounted callback is not triggered when using Teleport #6347
Comments
Any way I can help in order to speed up the resolution of this ticket ? It's very crippling for our application and the linked MR is now stale for almost a year. |
I also conducted testing and reproduction on my end. 我这边也测试发现了 |
Please, fix it as soon as possible. |
My leader said that if we don't solve it, we will solve me |
It has been a year since this issue was reported. if it is planned to be fixed, or it will not be addressed? |
We got the same leak issue when using the The DOM nodes under the Teleport can't be garbage collected after the close or destruction. @AlexandreBonaventure @pkrzyszko @1zxca @zhaokun1219 <Teleport to="body" :disabled="!teleported">
...
</Teleport> While changing it to conditional rendering in the template can be a quick turnaround. <Teleport to="body" v-if="teleported">
...
</Teleport>
<template v-else>
</template> @sodatea Since the Teleport is used in many common UI scenarios, hope this issue can be fixed ASAP. |
https://twitter.com/edison11051/status/1706625485655208263 |
yes |
Vue version
3.2.37
Link to minimal reproduction
https://sfc.vuejs.org/#__DEV__eNq1VE1v2kAQ/StbqxJGiu1CDq0ciJLmXKlS6c2HLPZgtvF+aHdMipD/e2dt4xgioqZSfWHn872ZfewhuDcm3tUQpMECQZqKI9xmKsNFIXZ0YPSNjmSsa0StmMN9BcsskNyWQkVWlFtM2Rfz+yYL2F1eifyJoluuigoe6KeEcDKbTLNg6JThg89iEhhq5p4F5lum+E6UHAUhzAbIpMN8xeECzPxdMPMLMIvkdANsF4kNYVHpam+ALZdLRhONkBYrqMBoiwREiWtd7GkXaSEcX1dQkOsDNwZUsdJf29hQSbW5VggKV3xN5KTfLAHNqD556Z8cAd5Dcf5/Kc7/luLxtEjGOlMLl1thkDnA2pBHyJbegVnYsIZtrJZsQgKd3AyxEY8uHCe9K0K+9mqe+M7kc8jG47Cl7xpueOVgekwYltXGJqSdPjAWFUVDpKwpW96ygx+nL4t3vKp92Ecz1fj5uona6YKroCMdSW7iX04r+qO19VkfcFmQdh29j7h7mxSNaFyaJLUyT2Wca5ncUSyxtUIhISq0vLuO5/H1Z9qqw7E/BiejtdXPDiwhZsHVqHlCzh3YyNJOwIJ9E+ws9wTwLPYK1GPSMhpawNndnL00J89Le8xrS23pMTkcWp2xpjkX+m0FqsRtm1Jw5HFnn2T+g96umFbfNK0SCn/8qWRnnOiwvbxeIsZq4+jyC9gIBd+9FfbqkDBcq5dGyn6gFao87mVQmaffa0/BM7u3lu/D+Sf/TeONqKpwNqXkTA3UwvBFhb6HriCudBk+Dhkp+3hoqcWeR/NI9R5wNNEbPYacC10GfQfNH/pCE0w=
Steps to reproduce
Click the button to switch navigation, and the onUnmounted callback of the sub component will not be triggered
What is expected?
The onUnmounted callback can be triggered normally
What is actually happening?
The onUnmounted callback cannot be triggered
System Info
No response
Any additional comments?
In my project (created via npm init vue@latest), the same code also causes memory leak in development mode. The memory usage keeps going up when I switch the navigation, but this problem cannot be reproduced in SFC Playground.
The text was updated successfully, but these errors were encountered: