Skip to content
Source
Sign inSign up
TanStack/db

Angular input signals and compiled test setup #1509

Closedbenjavicente(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/1509/headopened

Showing 10 changed files with 71 additions and 25 deletions (loading 6).

x
0 of 10 viewed, 10 left
5 additions and 0 deletions.changeset/early-heads-stand.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/angular-db': patch
+---
+​
+Allow input signals in inject live query
7 additions and 18 deletionspackages/angular-db/src/index.tsModified
View file
@@ -1,10 +1,10 @@
import {
- DestroyRef,
assertInInjectionContext,
computed,
effect,
- inject,
+ linkedSignal,
signal,
+ untracked,
} from '@angular/core'
import { BaseQueryBuilder, createLiveQueryCollection } from '@tanstack/db'
import type {
@@ -135,7 +135,6 @@
): InjectLiveQueryResultWithSingleResultCollection<TResult, TKey, TUtils>
export function injectLiveQuery(opts: any) {
assertInInjectionContext(injectLiveQuery)