What problem does it solve?
It solves slow React loading caused by request waterfalls and duplicated, unmanaged fetching logic by providing modern data-fetching patterns for caching, deduplication, and coordinated UI loading.
Core Features & Use Cases
- Parallelize independent requests to remove sequential network round trips (e.g., loading user, posts, and notifications together).
- Use TanStack Query (and Suspense) for production-grade client-side fetching with caching, retries, deduplication, and declarative loading boundaries.
- Improve UX with prefetching and optimistic updates so navigation feels instant and mutations update the UI immediately.
- Avoid common performance and reliability pitfalls like fetch-in-effect waterfalls, redundant event listeners, and brittle local storage without schema/versioning.
Quick Start
Use the react-data-fetching skill when you’re adding or refactoring React data loading and want to replace fetch-in-effect with a cached, deduplicated TanStack Query approach (optionally using Suspense) and avoid waterfall patterns.