Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4830

Datadown to a component leads to memory leak?

$
0
0

@Srinithi wrote:

Hi… I have a simple ember app that does data-down to a component

I basically want to avoid memory leaks in my app. I tested in canary and found that there are detached HTMLDivElements… Below is the screenshot… Are these really memory leaks? If yes, Can someone please help me out on how to avoid these leaks? Also, is there anyway to find the source of the leaks from the heap snapshots?

Here is the twiddle

https://ember-twiddle.com/8e3cf314c7885ec42c06ed3fab236020?openFiles=templates.components.memory-leak-parent.hbs%2Ctemplates.components.memory-leak-child.hbs

I did the following:

  1. Took a heap snapshot after loading the twiddle (snapshot1)
  2. Clicked on Show/Hide child button to show the child component
  3. Clicked on Show/Hide child button to hide the child component
  4. Took a heap snapshot ( snapshot 2 ) Compared the snapshots and found the following

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles