Framework
Version

Angular Query

The Angular adapter is now available for TanStack Query v5.

ts
  postQuery = injectQuery(() => ({
    enabled: this.postId() > 0,
    queryKey: ['post', this.postId()],
    queryFn: () => lastValueFrom(this.getPost$(this.postId()))
  }))
  postQuery = injectQuery(() => ({
    enabled: this.postId() > 0,
    queryKey: ['post', this.postId()],
    queryFn: () => lastValueFrom(this.getPost$(this.postId()))
  }))

It's based on Angular signals and compatible with Angular v16+.

Check the complete documentation: Angular Query overview.

Want to Skip the Docs?
Query.gg - The Official React Query Course
“This course is the best way to learn how to use React Query in real-world applications.”—Tanner Linsley
Get the course