Hacker News new | ask | show | jobs
by Ndymium 1798 days ago
If the custom DOM element is deleted, then its entry in the map will also be deleted. Otherwise it would hang around in the Map forever (unless manually deleted in a lifecycle callback).
1 comments

Why would component's state sit outside the component anyway? Why isn't it a field on the extended class?
True, it would make more sense to do that.