Skip to content

Notify RootPart of disconnect when disconnecting component #407

Open
@megheaiulian

Description

@megheaiulian

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).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions