Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Beware that connectedCallback runs _every time_ a custom element is added to the dom. So you should make sure to only add event listeners once by tracking internally if the element was already initialized.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: