| id | TanStackStoreSelector |
|---|---|
| title | TanStackStoreSelector |
Defined in: tan-stack-store-selector.ts:22
TSource
TSelected = NoInfer<TSource>
ReactiveController
new TanStackStoreSelector<TSource, TSelected>(
host,
getStore,
selector,
options?): TanStackStoreSelector<TSource, TSelected>;Defined in: tan-stack-store-selector.ts:35
ReactiveControllerHost
() => SelectionSource<TSource> | undefined
(snapshot) => TSelected
UseSelectorOptions<TSelected>
TanStackStoreSelector<TSource, TSelected>
hostDisconnected(): void;Defined in: tan-stack-store-selector.ts:72
Called when the host is disconnected from the component tree. For custom
element hosts, this corresponds to the disconnectedCallback() lifecycle,
which is called the host or an ancestor component is disconnected from the
document.
void
ReactiveController.hostDisconnectedhostUpdate(): void;Defined in: tan-stack-store-selector.ts:48
Called during the client-side host update, just before the host calls its own update.
Code in update() can depend on the DOM as it is not called in
server-side rendering.
void
ReactiveController.hostUpdate