Introduction to ngrx-rtk-query
ngrx-rtk-query is a plugin that brings the power of RTK Query (Redux Toolkit Query) to Angular applications with NgRx. It combines RTK Query’s auto-generated hooks with Angular’s Signals to deliver the same powerful data fetching and caching functionality as the official RTK Query guide with hooks.What is ngrx-rtk-query?
ngrx-rtk-query bridges the gap between React’s RTK Query and Angular’s component model, providing:- Auto-generated hooks from API definitions (
useXxxQuery,useLazyXxxQuery,useXxxMutation) - Signal-based reactivity for fine-grained change detection
- Seamless integration with or without NgRx Store
- TypeScript-first design with full type safety
- Familiar API that follows RTK Query conventions
Quick Links
Installation
Get started with installation instructions and version compatibility
Quick Start
Build your first API integration in minutes
Queries
Learn how to fetch data with queries and lazy queries
Mutations
Discover how to modify data with mutations
Key Features
Signal-Based Reactivity
Leverage Angular Signals for optimal change detection and reactivity:Auto-Generated Hooks
Define your API once, and get fully-typed hooks automatically:Flexible Store Integration
Works with or without NgRx Store:Smart Caching & Invalidation
Built-in intelligent caching with tag-based invalidation:Dynamic Query Arguments
Pass signals, functions, or static values as query arguments:Infinite Queries
Built-in support for pagination and infinite scrolling:TypeScript Excellence
Fully typed API with excellent IDE support and type inference:Why ngrx-rtk-query?
Proven Technology
Built on RTK Query, battle-tested by the Redux community
Angular Native
Designed specifically for Angular with Signals and dependency injection
Developer Experience
Auto-generated hooks, full TypeScript support, and minimal boilerplate
Performance
Optimized change detection with fine-grained signal updates
Ready to Get Started?
Install ngrx-rtk-query
Follow the installation guide to add ngrx-rtk-query to your Angular project
Version Alignment: Library versions align with Angular major versions (e.g., ngrx-rtk-query 21.x works with Angular 21.x)