You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 1, 2021. It is now read-only.
(Please forgive me opening issues, there are rather questions than actual issues. I'm just getting familiar with basichtml, which looks awesome as your other projects (e.g. heresy <3))
I found that
disconnectedCallback()doesn't get invoked when removing a custom element from the DOM.To be honest, I don't really know what behaviour should I expect here:
document.innerHTMLwhen it changes, callingdisconnectedCallbacks of those elements which were removeddocument, which resetsdocument.innerHTMLand calls thedisconnectedCallbacks of each rendered elementsDoes basichtml have any support for this? (instead of doing
document.body.innerHTML = '';)As a result of not calling
disconnectedCallback, thesetInterval()created inconnectedCallbackkeeps ticking in every second.Console output:
(Please forgive me opening issues, there are rather questions than actual issues. I'm just getting familiar with basichtml, which looks awesome as your other projects (e.g. heresy <3))