From 418d573b5026a66c37836fcf370c4f1e49580803 Mon Sep 17 00:00:00 2001 From: Ethan McDaniel Date: Mon, 16 Feb 2026 14:31:19 -0700 Subject: [PATCH 1/2] fix: resolve issue where reactive params were being tracked twice inside of the computed collection This issue was causing the computed to run twice anytime a reactive param was updated. --- packages/angular-db/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular-db/src/index.ts b/packages/angular-db/src/index.ts index e96a70de2..63679ca19 100644 --- a/packages/angular-db/src/index.ts +++ b/packages/angular-db/src/index.ts @@ -141,7 +141,7 @@ export function injectLiveQuery(opts: any) { } return createLiveQueryCollection({ - query: (q) => query({ params: currentParams, q }), + query: () => result, startSync: true, gcTime: 0, }) From 7311ec5ca14ed94d9409b1742dfebd8e59367af2 Mon Sep 17 00:00:00 2001 From: Ethan McDaniel Date: Mon, 16 Feb 2026 14:39:38 -0700 Subject: [PATCH 2/2] chore: add changeset --- .changeset/nasty-clubs-tease.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/nasty-clubs-tease.md diff --git a/.changeset/nasty-clubs-tease.md b/.changeset/nasty-clubs-tease.md new file mode 100644 index 000000000..f611741ed --- /dev/null +++ b/.changeset/nasty-clubs-tease.md @@ -0,0 +1,5 @@ +--- +'@tanstack/angular-db': minor +--- + +fixing double reactive parameter tracking inside of injectLiveQuery