angular-best-practices-tanstack logo

angular-best-practices-tanstack

angular best practices tanstack

SKILL.md

Full skill instructions

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

RuleImpactDescription
Know When to Use TanStack QueryMEDIUMServer state (APIs) vs client state (signals)
Use Query Key FactoriesMEDIUMConsistent key structure for hierarchical invalidation

Install

Install from skills.sh/alfredoperez/angular-best-practices: