Skip to content

Commit

Permalink
fix(angular-query): fix console warning on Angular 19 (#8422)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoud-dv authored Dec 9, 2024
1 parent e7d7d36 commit 4dc8256
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/angular-query-experimental/src/create-base-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
DestroyRef,
Injector,
NgZone,
VERSION,
computed,
effect,
inject,
Expand Down Expand Up @@ -97,7 +98,8 @@ export function createBaseQuery<
},
{
// Set allowSignalWrites to support Angular < v19
allowSignalWrites: true,
// Set to undefined to avoid warning on newer versions
allowSignalWrites: VERSION.major < '19' || undefined,
injector,
},
)
Expand Down

0 comments on commit 4dc8256

Please sign in to comment.