@reduxjs/toolkit
2.13.0 · 29 Sep 2026MIT45.8M / weekRepositoryHomepagenpmAtom feed
2.13.0 is the newest release of 2.x.
In short
4 new7 fixed
Release note
This bugfix release fixes several assorted types issues with the initial infinite query feature release, and adds support for an optional signal argument to createAsyncThunk.
Changelog
Infinite Query Fixes
We've fixed several types issues that were reported with infinite queries after the 2.6.0 release:
matchFulfilledandprovidesTagsnow get the correct response typesWe've added pre-typed
Type*types to represent infinite queries, similar to the existing pre-defined types for queries and mutationsselectCachedArgsForQuerynow supports fetching args for infinite query endpointsWe fixed some TS type portability issues with infinite queries that caused errors when generating TS declarations
useInfiniteQueryState/Subscriptionnow correctly expect just the query arg, not the combined{queryArg, pageParam}object
Other Improvements
createAsyncThunk now accepts an optional {signal} argument. If provided, the internal AbortSignal handling will tie into that signal.
upsertQueryEntries now correctly generates provided tags for upserted cache entries.
What's Changed
Fix assorted infinite query types
Add providesTags handling for upsertQueryEntries
Add infinite query type support for selectCachedArgsForQuery
Add more Typed wrappers and make sure they're all exported
Fix infinite query type portability issues
Support passing an external abortsignal to createAsyncThunk