Data Loading
See AGENTS.md for general guidelines.
Strategy Selection
- •TanStack Query — if already installed in the project, use it
- •
rxResource— default for observable-based data loading - •
resource— default for promise-based data loading
rxResource API Changes
The rxResource API changed in Angular 20. For projects on Angular < 20, search the official Angular documentation for the correct API matching the project's version before writing code.
Loading & Error States
- •Always provide both a loading template and an error template unless explicitly instructed otherwise
- •Never manually track loading or error state with custom signals or variables — derive it from the resource or query