MCPcopy
hub / github.com/lit/lit / Disconnectable

Interface Disconnectable

packages/lit-html/src/lit-html.ts:1123–1134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1121}
1122
1123export interface Disconnectable {
1124 _$parent?: Disconnectable;
1125 _$disconnectableChildren?: Set<Disconnectable>;
1126 // Rather than hold connection state on instances, Disconnectables recursively
1127 // fetch the connection state from the RootPart they are connected in via
1128 // getters up the Disconnectable tree via _$parent references. This pushes the
1129 // cost of tracking the isConnected state to `AsyncDirectives`, and avoids
1130 // needing to pass all Disconnectables (parts, template instances, and
1131 // directives) their connection state each time it changes, which would be
1132 // costly for trees that have no AsyncDirectives.
1133 _$isConnected: boolean;
1134}
1135
1136function resolveDirective(
1137 part: ChildPart | AttributePart | ElementPart,

Callers

nothing calls this directly

Implementers 4

TemplateInstancepackages/lit-html/src/lit-html.ts
ChildPartpackages/lit-html/src/lit-html.ts
AttributePartpackages/lit-html/src/lit-html.ts
ElementPartpackages/lit-html/src/lit-html.ts

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…