Packages

@reduxjs/toolkit

2.13.0 · 29 Sep 2026MIT45.8M / weekRepositoryHomepagenpmAtom feed

Your version

2.1.0

24 Jan 2024Where it was published

2.13.0 is the newest release of 2.x.

In short

12 new10 fixed16 changed3 internal

Release note

This minor release:

  • Adds withTypes methods to listenerMiddleware and createDraftSafeSelector

  • Adds a skipPollingIfUnfocused option to RTK Query

  • Adds the ability to customise the createSelector instance used by RTK Query

  • Reworks slice selector logic to avoid depending on this value

  • Fixes the order and inference of create.asyncThunk type parameters

  • Fixes requirements for meta fields returned from queryFns

  • Marks promises that will never reject as safe, in preparation for #7008

What's Changed

  • Update docs to avoid circular type

  • Copy "Migrating to Modern Redux" and "RTK is Redux" docs from core site

  • Fix store path rtk-query pokemon api tutorial

  • Tweak RTKQ without hooks section, and add note regarding memoization

  • Add section regarding overriding deps

  • Add section re: RR custom context typing change

  • Add Expo demo app to CI workflow

  • Preserve nullable store state type by avoiding intersection with {}

  • Upgrade version of "graphql-request"

  • Update RTK peerDependency

  • Improve selectFromResult memoization

  • Rename "createSliceWithThunks" and "createThunkSlice" to "createAppSlice"

  • Bump Vitest to latest version

  • Fix inference and order of async thunk generics

  • Fix markdown links on Next.js page

  • Introduce pre-typed listener middleware via listenerMiddleware.withTypes<RootState, AppDispatch>() method

  • Add .withTypes to createDraftSafeSelector

  • Task/remove all settled

  • Allow customising createSelector instance used by RTKQ

  • cacheLifecycle fix for fixedCacheKey in mutationThunk

  • Avoid relying on this in createSlice

  • documentation: Fix grammar in redux and redux toolkit comparison

  • Update tsconfig.typetests.json to include all TS files

  • Remove abort event listner for AbortController

  • fix/kitchen-sink-isAuthenticated: Fixed isAuthenticated state change on login fullfilled

  • Fix composeWithDevTools spy

  • Require queryFn meta to match base query

  • Added 'SafePromise' branded Promises for createAsyncThunk

  • Add React Native demo app to CI workflow

  • Add missing reducer field to ConfigureStoreOptions docs

  • Option for queries to pause polling when unfocused