Redux Toolkit 2.15 Released: Key Updates for State Management and RTK QueryBrief · digest for November 25
Brief≈ 1 min

Redux Toolkit 2.15 Released: Key Updates for State Management and RTK Query

If you've run SSR or parallel tests with RTK Query, you may have hit strange race conditions where separate stores interfere with each other's timers and requests. Previously, their state lived in shared closures on the api object. In Redux Toolkit 2.15, each store gets its own isolated runtime: resetApiState clears only that store, and the missing-middleware check runs per store.

The second major fix targets manual initiate() calls. Before, the promise read the cache after the server responded and could return undefined or another query's data if the entry was removed. After formal modeling, the team rewrote the flow so the result is captured when written to the store, ensuring the promise always resolves to its own request's result. Listener middleware fork and TypeScript types also improved.

One behavior change may affect existing code. Removing a cache entry mid-flight (removeQueryResult, lazy query reset(), cache garbage collection, or resetApiState) now aborts the request with AbortError. As a result, .unwrap() and queryFulfilled inside onQueryStarted will reject instead of resolving empty—make sure await queryFulfilled is wrapped in try/catch. Tag or focus invalidation now waits for an in-flight request to finish before refetching if subscribers remain.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 2