Packages

@reduxjs/toolkit

2.15.0 · 18 Nov 2026MIT51.3M / weekRepositoryHomepagenpmAtom feed

Upgrading @reduxjs/toolkit From 1.9.7 to 2.15.0

34 releases in betweennotes for 32

Reading releases, release notes and advisories…

  1. 1.9.7yours
  2. 2.0.0major
  3. 29 releases
  4. 2.12.0breaking
  5. 1 release
  6. 2.14.0breaking
  7. 2.15.0target
9+
changes to make
0
advisories fixed
30+
new
61+
fixes

Counted from 32 of 34 release notes. Advisories are counted from the advisory database, in full.

Start here

Before you upgrade

Tick each one off as you go
  • Breaking2.14.0
  • Breaking2.12.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Breaking2.0.0
  • Deprecated2.15.0
  • Deprecated2.14.0

Release by release

  1. 2.15.0

    Deprecation18 Nov 20263 fixes
    • Deprecated

      The hooks use isSubscribed() now, and don't dispatch anything to check subscriptions. The internal_getRTKQSubscriptions action is deprecated. It still works in 2.x, but logs a one-time dev warning and will be removed in 3.0.

    • Fixed

      refetchOnMountOrArgChange: 0 and forceRefetch: 0 now always refetch. Before, 0 disabled the option.

    • Fixed

      refetchOnFocus and refetchOnReconnect refetch a shared query if any subscriber's own or inherited setting is true. One subscriber's false no longer turns it off for the others.

    • Fixed

      Polling skips while unfocused only if every polling subscriber sets skipPollingIfUnfocused. Non-polling subscribers don't affect this.

  2. 2.14.0

    Migration needed3 Nov 20263 fixes
    • Breaking

      Note that we just announced our roadmap to Redux Toolkit 3.0, which includes both a large set of planned 2.x features and improvements, and planned 3.0 breaking changes.

    • Deprecated

      ApiRootState replaces RTK Query's RootState type, which is now deprecated. RootState will be removed in 3.0.

    • Fixed

      TypedAddListenerAction and TypedRemoveListenerAction describe the actions that addListener and removeListener actually dispatch. The default payload type of TypedAddListener and TypedRemoveListener is now the listener options object, so addListener.match(action) no longer claims action.payload has fields like id and unsubscribe that don't exist at runtime.

    • Fixed

      dispatch(removeListener(...)) is typed as returning boolean and dispatch(clearAllListeners()) as returning void, matching the runtime.

    • Fixed

      UseQueryStateDefaultResult and UseInfiniteQueryStateDefaultResult are exported from @reduxjs/toolkit/query/react, for wrapping hooks with a generic selectFromResult.

  3. 2.13.0

    29 Sep 20261 new · 15 fixes
    • New

      codegen: Migrate to oazapfts v7

    • Fixed

      combineSlices: Scope stateProxyMap per instance to prevent cross-instance proxy collisions

    • Fixed

      entityAdapter: pre-merge same-ID updates in sorted adapter's updateMany

    • Fixed

      entityAdapter: setAll with duplicate IDs keeps last occurrence (consistent with setMany)

  4. 2.12.0

    Migration needed15 May 20261 new · 2 fixes
    • Breaking

      toolkit: Switch to native NoInfer utility type

    • New

      Add TanStack Intent skills for Redux Toolkit

    • Fixed

      Allow interface-based type guards as listener matcher

    • Fixed

      Add setTimeout fallback to raf autoBatch strategy for background tabs

  5. 2.11.2

    14 Dec 20251 fix
    • Fixed

      Use a normal Error when DOMException isn't available

  6. 2.11.1nothing new or fixed in the note

  7. 2.11.0

    23 Nov 20251 new · 1 fix
    • New

      Add refetchCachedPages option for infinite query

    • Fixed

      Compare paths against Regex instances in ignoredPaths

  8. 2.10.1

    4 Nov 20251 fix
    • Fixed

      Fix window SSR breakage

88 other lines we could not sort, mostly version bumps
  • Removing a cache entry while its request runs now aborts that request. This covers removeQueryResult, a lazy query's reset(), cache collection, and resetApiState. The initiate() promise resolves with isError: true and an AbortError whose message is 'removed' or 'reset'. That means unwrap() now rejects in this case, where it used to resolve with stale or missing data. The plain promise still never rejects.

    2.15.0
  • queryFulfilled in onQueryStarted rejects in the same case. If your onQueryStarted does await queryFulfilled without a try/catch, you'll now get an unhandled rejection when the entry is removed mid-request. Wrap it:

    2.15.0
  • Invalidating an entry that has a running request (by tags, or a focus/reconnect refetch) now waits for that request to finish. The running request's promise gets its own result, and then the entry refetches if it has subscribers, or is removed if it doesn't.

    2.15.0
  • A refetch while a request is running joins that request instead of starting another one. initiate() also joins a running upsertQueryData.

    2.15.0
  • A pending entry restored from persisted state, with no request actually running, now fetches again.

    2.15.0
  • A negative numeric pollingInterval now means "no polling". Before, it re-polled immediately in a loop.

    2.15.0
  • 'payload.options.pollingInterval' is a new default entry in the serializability check's ignoredActionPaths. If you pass your own ignoredActionPaths, you'll need to add it.

    2.15.0
  • SubscriptionOptions['pollingInterval'] is now number | ((entry) => number), so code that reads it as a number needs a type check. There's a new exported PollingInterval type.

    2.15.0
  • api.util.getMiddlewareState() is a thunk that returns read-only access to what the middleware tracks for that store (currently getSubscriptionCount(queryCacheKey)), or undefined if the middleware isn't added (#5501).

    2.15.0
  • Query initiate() results have an isSubscribed() method.

    2.15.0

18 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.