ionicons
ionicons copied to clipboard
bug: Memory Leak with Clusterize.js "Detached Elements"
Current Behavior
When using clusterize.js + ionicons module, ionicons keeps references in memory, the list of "Detached Elements" keeps growing.
Expected Behavior
Elements to be Garbage Collected.
Steps to Reproduce
- Create a instance of Clusterize.js with 1000 items, using the tag
<ion-icon name="arrow-forward-circle-outline"></ion-icon>
-
Filter the list using the button
Or even just by scrolling the list...
-
Check the "Detached Elements" (in Edge) or in Chrome
Code Reproduction URL
https://codepen.io/viniciuscenci/pen/RwvvrGL
Additional Information
In the provided code, by replacing the <ion-icon> tag with regular <svg> or svg references, the problem is solved, but the convenience of <ion-icon> tag is lost =(
[!NOTE] It get event worst when there is multiple icons, divs and other elements inside de list item, since the number of detached nodes is basically multiplied.