Giter VIP home page Giter VIP logo

Comments (4)

JeanMeche avatar JeanMeche commented on July 22, 2024

I wasn't able to reproduce the issue.
Since this is not consistent, can you check that you can still reproduce it after forcing Garbage collection ?

Use the dedicated button to trigger GC:
image

from angular.

bellostom avatar bellostom commented on July 22, 2024

Hi @JeanMeche
I have tried GC but it has not collected the detached nodes.
I have tried with Edge which has a cool Detached Elements feature is its developer tools
I attach a video displaying the issue.

In the video, the first few actions, where I do not interact with the select list, are garbage collected.
As soon as I select something in the list, the whole component is detached and not garbage collected

edge_detached_nodes.mp4

Let me know if you need any more information
Thanks

from angular.

bellostom avatar bellostom commented on July 22, 2024

Continuing from the previous video, I attach a new one, where following the details described in Microsoft's article on detached nodes,
https://learn.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/memory-problems/dom-leaks#identify-the-dom-node-causing-others-to-be-retained,
the Detached Elements functionality of their Dev Tools, has the ability to pinpoint the exact culprit, by breaking the parent child DOM graph

So, stripping the DOM, the culprit seems to be the select DOM element

detached_select_element.mp4

Hope this helps

from angular.

bellostom avatar bellostom commented on July 22, 2024

Back again with another observation.
I would expect the detached elements to keep increasing, once you enter the view, interact with the select element and return to the home page.
However this is not true and also puzzling.
Instead, as shown in the below video, the ,app-list> that remains detached, seems to be collected and replaced by a new one, each time you execute the beforementioned actions.
I have tried both with zone and zoneless and the behavior is the same.
Hope the above help

detached_element.mp4

from angular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.