Conceptual
Login

RTK Query

RTK Query (`createApi`) treats server data as cache, not state: it generates hooks per endpoint, deduplicates in-flight requests, caches by argument, and refetches via tag-based invalidation when a mutation declares the tags it invalidates. It removes hand-written thunks, loading flags, and normalized fetch caches for most server-state needs.

This Concept is waiting for its first lesson!

RTK Query (`createApi`) treats server data as cache, not state: it generates hooks per endpoint, deduplicates in-flight requests, caches by argument, and refetches via tag-based invalidation when a mutation declares the tags it invalidates. It removes hand-written thunks, loading flags, and normalized fetch caches for most server-state needs.

Are you a teacher? Sign in to start contributing.

Sign In