Skip to content

Commit

Permalink
fix(angular-query): fix error NG0600 on Angular v16-v18 (#8419)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoud-dv authored Dec 9, 2024
1 parent 9e6d01d commit 406df75
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 @@ -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,
},
)
Expand Down

0 comments on commit 406df75

Please sign in to comment.