Defined in: packages/lit-table/src/subscribe-directive.ts:43
An asynchronous Lit directive that subscribes to a @tanstack/lit-store source and triggers re-renders specifically for the template portion it wraps.
new SubscribeDirective(_partInfo): SubscribeDirective;Defined in: node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/development/directive.d.ts:61
PartInfo
SubscribeDirective
AsyncDirective.constructorisConnected: boolean;Defined in: node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/development/async-directive.d.ts:143
The connection state for this Directive.
AsyncDirective.isConnectedget _$isConnected(): boolean;Defined in: node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/development/directive.d.ts:62
boolean
AsyncDirective._$isConnected_$initialize(
part,
parent,
attributeIndex): void;Defined in: node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/development/async-directive.d.ts:150
Initialize the part with internal fields
Part
Disconnectable
number | undefined
void
AsyncDirective._$initializedisconnected(): void;Defined in: packages/lit-table/src/subscribe-directive.ts:147
Cleans up the controller subscription when the directive is removed from the DOM.
void
AsyncDirective.disconnectedreconnected(): void;Defined in: packages/lit-table/src/subscribe-directive.ts:152
Restores the controller subscription when the directive is re-attached to the DOM.
void
AsyncDirective.reconnectedrender<TSource>(source, template): unknown;Defined in: packages/lit-table/src/subscribe-directive.ts:61
Renders the entire state of the source without a selector.
TSource
SelectionSource<TSource>
The store or atom to subscribe to.
TemplateFunction<TSource>
The render function receiving the full state.
unknown
AsyncDirective.renderrender<TSource, TSelected>(
source,
selector,
template): unknown;Defined in: packages/lit-table/src/subscribe-directive.ts:72
Renders a specific slice of state derived via a selector function.
TSource
TSelected
SelectionSource<TSource>
The store or atom to subscribe to.
Selector<TSource, TSelected>
A function to extract the relevant slice of state.
TemplateFunction<TSelected>
The render function receiving the selected state slice.
unknown
AsyncDirective.rendersetValue(value): void;Defined in: node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/development/async-directive.d.ts:161
Sets the value of the directive's Part outside the normal update/render lifecycle of a directive.
This method should not be called synchronously from a directive's update or render.
unknown
The value to set
void
AsyncDirective.setValueupdate(_part, args): unknown;Defined in: packages/lit-table/src/subscribe-directive.ts:87
Part
[SelectionSource<any>, TemplateFunction<any>] | [SelectionSource<any>, Selector<any, any>, TemplateFunction<any>]
unknown
AsyncDirective.update