Open megheaiulian opened 2 years ago
When a component rendered with lit-html is disconnected we should notify the template's RootPart of the disconnect so that its async directives get disconnected too. On disconnect we could call removePart (https://github.com/lit/lit/blob/main/packages/lit-html/src/directive-helpers.ts#L216).
lit-html
removePart
When a component rendered with
lit-html
is disconnected we should notify the template's RootPart of the disconnect so that its async directives get disconnected too. On disconnect we could callremovePart
(https://github.com/lit/lit/blob/main/packages/lit-html/src/directive-helpers.ts#L216).