79741994

Date: 2025-08-21 07:47:12
Score: 1
Natty:
Report link

I think that the disconnectedCallback() is what are you looking for.
Try to add it to your class with logic of destroying your element, like

disconnectedCallback() {
    // here put your logic with killing subscriptions and so on
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Виталий Боднар