Redux Toolkit 15 ⚛️ RTK Query Caching — Managing automated cache tags and invalidation
RTK Query caching is built on two separate mechanisms that work together. The first is the cache lifetime: every endpoint’s data is stored in a normalized cache, and the keepUnusedDataFor option controls how long an unused entry survives before it is removed. The second is the tag system: the providesTags and invalidatesTags options connect the…