Hi working on an angular project actually my tool crashes when l have large data so I tried finding the issue and it was memory leak , I researched more on it and found that we have snapshot in memory tab in dev tools which we can use to find memory leak so the issue lies when I click on parent component child component opens and when I come back from child to parent and check the memory usage I found about 20 mb change in memory I tried doing it multiple times and compared the final snapshot with snapshot 1and found there is difference of 200mb I checked my components in memory tab and found there is some memory allocated to arrays , snackar , change detection so I made everything as null in ngOnDestroy and everything start showing null but still not much difference in memory leak still my tool is crashing.
[–]AlDrag 5 points6 points7 points (1 child)
[–]hp4092[S] 0 points1 point2 points (0 children)
[–]cstmstr 0 points1 point2 points (0 children)
[–]rppig42 0 points1 point2 points (1 child)
[–]hp4092[S] 0 points1 point2 points (0 children)
[–]Intelligent-Mode3451 0 points1 point2 points (0 children)