
Angular Best Practices Tanstack
If you're using TanStack Query's experimental Angular adapter, this skill keeps you on the right path with query key factories and cache invalidation patterns. It's focused on server state management, meaning it won't interfere if you're using NgRx Effects or RxJS for other parts of your app. The two rules here cover the core distinction between server and client state, plus how to structure query keys for hierarchical invalidation. This is an add-on to the main angular-best-practices skill from the same author, so you'll want both installed for complete coverage. The scope is narrow but hits the patterns that matter most when you're moving API calls to TanStack Query.
- skills.sh installs
- 230
- GitHub stars
- 36
- last updated
- Jun 3, 2026
Install
$ npx -y skills add alfredoperez/angular-best-practices --skill angular-best-practices-tanstack --agent claude-codeInstalls into .claude/skills of the current project.
Files
Angular TanStack Query Best Practices
TanStack Query rules for server state with automatic caching, deduplication, and background refetching. Use with the core angular-best-practices skill for comprehensive Angular coverage.
Links
When to Apply
- Fetching data from APIs with
injectQuery - Performing mutations with cache invalidation
- Structuring query keys for hierarchical invalidation
Rules
| Rule | Impact | Description |
|---|---|---|
| Know When to Use TanStack Query | MEDIUM | Server state (APIs) vs client state (signals) |
| Use Query Key Factories | MEDIUM | Consistent key structure for hierarchical invalidation |
Install
Install from skills.sh/alfredoperez/angular-best-practices:
Sponsors
Details
- Repository
- github.com/alfredoperez/angular-best-practices
- Category
- Frontend Development
- First seen
- Jun 3, 2026
More from alfredoperez/angular-best-practices
All 10- Angular Best Practices1.5K
- Angular Best Practices Primeng951
- Angular Best Practices Ngrx601
- Angular Best Practices Signalstore579
- Angular Best Practices Material522
- Angular Best Practices Transloco342
- Angular Best Practices Rules Reviewer331
- Angular Best Practices Rule Creator312
- Angular Best Practices Spartan272