From 406df7529d8f674e80936281098a5198acc29514 Mon Sep 17 00:00:00 2001 From: Arnoud <6420061+arnoud-dv@users.noreply.github.com> Date: Mon, 9 Dec 2024 11:35:52 +0100 Subject: [PATCH] fix(angular-query): fix error NG0600 on Angular v16-v18 (#8419) --- packages/angular-query-experimental/src/create-base-query.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/angular-query-experimental/src/create-base-query.ts b/packages/angular-query-experimental/src/create-base-query.ts index ad927a28d7..396236c901 100644 --- a/packages/angular-query-experimental/src/create-base-query.ts +++ b/packages/angular-query-experimental/src/create-base-query.ts @@ -92,10 +92,12 @@ export function createBaseQuery< }) }) onCleanup(() => { - resultFromSubscriberSignal.set(null) + ngZone.run(() => resultFromSubscriberSignal.set(null)) }) }, { + // Set allowSignalWrites to support Angular < v19 + allowSignalWrites: true, injector, }, )