Listeners In Chrome Dev Tools' Performance Profiling Results
Solution 1:
DevTools tech writer and developer advocate here.
I was able to reproduce the possible memory leak, so I filed a bug on the create-react-app repo: https://github.com/facebook/create-react-app/issues/4037
I'll update this answer depending on the outcome of that issue.
Regarding your questions:
What are these so called Listeners to begin with?
These are event listeners. If you select the html
element in your DOM Tree and then inspect the Event Listeners tab, you can see all listeners that have been defined on the page. Make sure that the Ancestors checkbox is enabled to show listeners on the html
element's children. In this case, I would expect to see an increasing number of listeners, but I'm not, so that's why I suspect it might be a bug in create-react-app
.
Is the increasing Listener could indicative of a memory leak?
Yes, it's possible.
Post a Comment for "Listeners In Chrome Dev Tools' Performance Profiling Results"