Comments (4)
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:
from angular.
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.
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.
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)
- [i18n] Merge generated file with existing file using `ng extract-i18n` HOT 2
- Como Hackear Instagram com Software Especializado (github)
- Add Dependency Support to effect Function in Angular HOT 2
- Unable to catch failed dynamic component imports HOT 3
- `ng-content` projection not rendered when inside `@if` HOT 4
- Angular 18 migration issue: deprecated HTTP modules HOT 1
- Control flow migration issue: templates are not deleted HOT 1
- Need a SBOM report for Infor (GRC Product) HOT 1
- 18.1.0 adding reference tag in .d.ts files that refers to ngtypecheck.d.ts that don't exist HOT 1
- The API definition of function types like ValidatorFn are empty
- Zoneless tests with unset required inputs succeeds unexpectedly HOT 3
- [18.1] AfterNextRender only invokes first phase callback when provided multiple via new API HOT 3
- Bug loading CSS map Files HOT 3
- Missing Portation of Page Managing Data
- docs: complete list of built-in pipes missing HOT 1
- Missing code snippet in Documentation of AfterViewInit HOT 1
- We analyzed your package.json and everything seems to be in order.
- Broken hydration after v17 -> v18 migration if i18n blocks are used
- Hydration breaks with p tag HOT 2
- Control flow with defer inside does not clean up before httpClient ends its request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular.