Redux Toolkit v2.14.0
This feature release improves Redux dispatch and RTK Query performance, reduces esbuild bundle size for `createSlice`, and speeds up RTK Query `Api` type checking. It adds RTK-owned declaration types, entity adapter helpers, RTK Query cache selectors, and a DevTools action sanitizer, alongside numerous RTK Query bug fixes.
Redux Toolkit users may benefit from faster dispatch, smaller esbuild bundles, improved type-checking and declaration portability, and new entity-adapter and RTK Query utilities; users of RTK Query's `RootState` type should migrate before 3.0.
If your code uses RTK Query's deprecated `RootState` type, switch to `ApiRootState`; otherwise, review the new selectors and sanitizer if they fit your needs.
- 01Replace RTK Query `RootState` type usages with `ApiRootState` ahead of its planned removal in 3.0.
const postEntries = api.util.selectEntriesForEndpoint(state, 'getPost')
const loadedPostIds = postEntries
.filter((entry) => entry.status === 'fulfilled')
.map((entry) => entry.originalArgs)# community_signal
How useful is this release to your stack?
Sign in with GitHub to cast your vote.
You’ll return to this release, then choose your vote.