-
-
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
<Transition> retains detached DOM nodes that already left #11782
Comments
chunk-FAED3IGF.js?v=cd150bc5:9710 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'nextSibling') |
@Xiaofusun |
UsePointGeocoder coordinate point analysis, it's not working well since this afternoon(坐标点解析,下午开始不能用了)
On 09/3/2024 ***@***.***> wrote:
@Xiaofusun
Please create a new issue with minimal reproduction
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Vue version
52cdb0f
Link to minimal reproduction
https://play.vuejs.org/#eNp9UTtPwzAQ/iuHl4JUmgGmKq14qAMMgCCjl5BeglvHtvwIlar8d85OU4qEmsn+XvnuvGf3xsy6gGzOcldZYTw49MEsuRKt0dbDHizW0ENtdQsTkk644qrSynnoShkQFlFx6W3AK67ybIihALp4bI0sPdINIP8M3msFd5UU1XbB2Wi/SAfOloVuGol5NghTBNkKWyonvEgI0JevRQfdtajHDLIODECBzh9UGcmGH2d/IvLspBabMu9omlo0s43Tihaxjx7OKt0aIdG+muhznM0hMZErpdTfzwmLc09HvPrCavsPvnG7iHH2ZtGh7ajxkfOlbdAP9OrjBXd0PpKtXgdJ6jPkOzotQ+w4yB6CWlPtE11q+5SeU6imcKudR1rHYahYNCr7pKeNBnw8M/pv3ZvZbfJx1bP+Bx9owfc=
Steps to reproduce
What is expected?
There is no detached DOM node.
What is actually happening?
There are detached DOM nodes that disappeared on step 2. It is retained by the old vnode in the scope of
<Transition>
render function viapostClone
callback ofresolveTransitionHooks
.System Info
No response
Any additional comments?
The detached nodes will be released when a next leave transition. So memory usage does not increase forever. But this behavior always keep some detached nodes which makes harder to find actual memory leak. In addition, since it keeps unused DOM tree in memory, it can be a problem under an environment where memory usage is restricted like mobile app's WebView.
The text was updated successfully, but these errors were encountered: