unstale

npm / @reduxjs/toolkit

@reduxjs/toolkit

What changed in @reduxjs/toolkit 2, from its official release notes, upgrade guides and advisories. Also covers @rtk-query/codegen-openapi. Sources checked 2026-11-30.

56 breaking5 deprecations61 new APIs and options7 performance17 behavior and defaults5 tooling62 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@reduxjs/toolkit 2213 changes

Breaking changes 56

  • An endpoint's maxRetries now caps retries even when the API-level retry() has a retryCondition.

    2.15.0release notes

  • A pending entry restored from persisted state fetches again when no request is actually running.

    2.15.0release notes

  • A negative numeric polling interval now disables polling instead of causing immediate repeated polling.

    2.15.0release notes

  • In onQueryStarted, queryFulfilled rejects if the entry is removed while its request runs; callers awaiting it should handle rejection.

    2.15.0release notes

  • A shared query refetches if any subscriber's own or inherited setting is true; another subscriber's false no longer overrides it.

    2.15.0release notes

  • A value of 0 now always refetches instead of disabling the option.

    2.15.0release notes

  • Removing a cache entry during its request now aborts that request; initiate() resolves with an AbortError, and unwrap() rejects.

    2.15.0release notes

  • Resets only that store's RTK Query runtime, clearing its subscribers, timers, cache lifecycles and pending tag invalidations, and aborting its running requests.

    2.15.0release notes

  • Calling retry.fail() inside a backoff function no longer nests the error inside { error, meta }.

    2.15.0release notes

  • The missing-middleware check runs once per store and is stricter: another API with the same reducerPath does not satisfy the check.

    2.15.0release notes

  • Retriggering a mutation with the same fixedCacheKey ends the previous cache lifecycle so its cleanup runs; an earlier in-flight trigger's cacheDataLoaded rejects instead of remaining unsettled.

    2.14.0release notes

  • A query that failed before receiving data now reports isLoading: true when it refetches.

    2.14.0release notes

  • Synchronous throws are caught and logged with console.error instead of escaping the pending dispatch and preventing queryFn from running.

    2.14.0release notes

  • A custom responseHandler that throws or rejects with a falsy value now produces PARSING_ERROR instead of a successful response.

    2.14.0release notes

  • A timeout that fires while the response body is being read is reported as TIMEOUT_ERROR instead of PARSING_ERROR.

    2.14.0release notes

  • Its default payload type is now the listener options object, matching the action dispatched at runtime.

    2.14.0release notes

  • Aborts that happen before the pending action is dispatched are no longer swallowed.

    2.13.0release notes

  • RTK now uses TypeScript's built-in NoInfer utility, which is available with TypeScript 5.4 and later.

    2.12.0release notes

  • RTK calls setUseStrictIteration(false), so Immer copies only string keys in objects by default for RTK updates, improving performance; apps using symbol keys can call setUseStrictIteration(true) to restore the previous behavior.

    2.10.0release notes

  • Initiates requests without adding a subscription, so cache entries remain only for the keepUnusedDataFor period unless the app subscribes.

    2.9.2release notes

  • Dispatching resetApiState now aborts all in-flight requests.

    2.9.2release notes

  • store.dispatch now throws if an action's type is not a string.

    2.0.0upgrade guide

  • Throws an error when ApiProvider is nested inside a normal Provider.

    2.0.0release notes

  • autotrackMemoize is no longer re-exported.

    2.0.0release notes

  • The combineReducers overloads are replaced by a single function definition that takes ReducersMapObject as its generic parameter.

    2.0.0upgrade guide

  • The enhancers option must be provided as a callback.

    2.0.0release notes

  • When both middleware and enhancers are provided, middleware must appear first for internal TypeScript inference to work correctly.

    2.0.0upgrade guide

  • The middleware array option was removed.

    2.0.0release notes

  • The enhancers field must now be a callback, which receives getDefaultEnhancers for customizing the default enhancers.

    2.0.0upgrade guiderelease notes

  • The middleware option now only accepts a callback, which can use getDefaultMiddleware to retain default middleware.

    2.0.0upgrade guiderelease notes

  • Tag invalidation is delayed by default so multiple invalidations can be handled together; set the flag to immediately to restore RTK 1.9 behavior.

    2.0.0upgrade guiderelease notes

  • The object lookup-table form is removed; use the builder callback form instead.

    2.0.0upgrade guiderelease notes

  • Uses weakMapMemoize as its default memoizer, offering an effectively infinite cache size for varying arguments but relying exclusively on reference comparisons.

    2.0.0upgrade guide

  • The object form is removed; use the builder callback form instead.

    2.0.0upgrade guiderelease notes

  • The function was renamed to lruMemoize; update imports that customize selectors.

    2.0.0upgrade guide

  • The Dictionary type has been removed.

    2.0.0upgrade guiderelease notes

  • Build artifacts now live under dist/ instead of separate top-level folders, and output targets modern ES2020 syntax without transpilation.

    2.0.0upgrade guide

  • The lookup table is now typed as Record<Id, MyEntityType>, assuming each lookup exists by default; noUncheckedIndexedAccess can make lookups possibly undefined.

    2.0.0upgrade guide

  • Using EntityState directly now requires both generic arguments.

    2.0.0upgrade guiderelease notes

  • Published JavaScript now targets ES2020; projects targeting older browsers must transpile the packages or use the legacy ESM artifact.

    2.0.0release notes

  • The standalone export is removed; use the function passed to the middleware callback instead.

    2.0.0upgrade guiderelease notes

  • The export is removed; use the action creator's static type property instead.

    2.0.0upgrade guiderelease notes

  • RTK no longer automatically enables Immer's ES5 fallback when loaded.

    2.0.0release notes

  • Renames defaultMemoize to lruMemoize for clarity; update imports if you used the function to customize selectors.

    2.0.0upgrade guide

  • The middleware action parameter is now typed as unknown, so middleware must narrow it before accessing fields.

    2.0.0upgrade guide

  • The middleware next parameter is now typed as (action: unknown) => unknown.

    2.0.0upgrade guide

  • ParametricSelector and OutputParametricSelector types have been removed; use Selector and OutputSelector instead.

    2.0.0upgrade guide

  • React-Redux v9 requires React 18 and no longer supports React 16 or 17, allowing it to drop the shim.

    2.0.0upgrade guide

  • Custom useDispatch, useSelector, and useStore hooks are now configured together under hooks, and all three are required when the key is present.

    2.0.0upgrade guiderelease notes

  • Reducer now accepts a PreloadedState generic, defaulting to S, to represent the state passed on the reducer's first call.

    2.0.0upgrade guide

  • The default export has been removed; import the named thunk and withExtraArgument exports instead.

    2.0.0upgrade guide

  • Tag invalidations are delayed.

    2.0.0release notes

  • TypeScript now requires Tuple when passing custom middleware or enhancers to configureStore, preserving the types of individual entries; plain arrays remain valid in JavaScript.

    2.0.0upgrade guiderelease notes

  • The lowest TypeScript version tested is now 4.7.

    2.0.0upgrade guide

  • UMD build artifacts are no longer included in the published package; browser-ready ESM is available at dist/$PACKAGE_NAME.browser.mjs.

    2.0.0upgrade guiderelease notes

  • UnknownAction treats fields other than action.type as unknown and is now the default where Redux expects an action object.

    2.0.0upgrade guide

Deprecations 5

  • The internal action is deprecated, still works in 2.x with a one-time development warning, and is planned for removal in 3.0.

    2.15.0release notes

  • RTK Query's RootState type is deprecated; use ApiRootState instead. RootState is planned for removal in 3.0.

    2.14.0release notes

  • AnyAction remains available for compatibility but is deprecated in favor of UnknownAction.

    2.0.0upgrade guide

  • createStore is visually marked deprecated to encourage migration to Redux Toolkit; it continues to work without runtime errors or warnings.

    2.0.0upgrade guide

  • A non-deprecated export of the same function as createStore is available for projects that want to avoid the deprecation indicator.

    2.0.0upgrade guide

New APIs and options 61

  • A typed thunk for query and infinite query endpoints returns the running request promise for a cache entry, or undefined, without adding a subscription.

    2.15.0release notes

  • A thunk returns read-only access to middleware-tracked state for that store, or undefined when the API middleware is absent.

    2.15.0release notes

  • A named public type improves editor hover readability.

    2.15.0release notes

  • Forked tasks can access getState, dispatch actions, and fork child tasks; nested forks are cancelled with their parent, and autoJoin makes the parent wait.

    2.15.0release notes

  • ForkedTaskAPI and task executor types accept optional State and DispatchType generics that flow through listener APIs and withTypes() variants.

    2.15.0release notes

  • The onCacheEntryAdded lifecycle API reports whether an entry was removed by resetApiState, another removal, or is still cached.

    2.15.0release notes

  • Query initiate() results expose an isSubscribed() method to check subscription status.

    2.15.0release notes

  • A new exported type represents numeric or cache-entry-function polling intervals.

    2.15.0release notes

  • A new exported type names the supported query start reasons.

    2.15.0release notes

  • Query initiate() accepts a retention duration in seconds; after the last subscriber leaves, the entry is kept for the greater of retainFor and keepUnusedDataFor.

    2.15.0release notes

  • Query APIs and lifecycle callbacks receive the reason a query is fetching; mutations receive undefined, and hydrate is reserved but not yet set.

    2.15.0release notes

  • ApiRootState is the replacement for RTK Query's RootState type.

    2.14.0release notes

  • Returns a Redux DevTools actionSanitizer that displays RTK Query actions with their endpoint name without modifying dispatched actions.

    2.14.0release notes

  • RTK declares and exports its own Draft type with the same shape as Immer's, so emitted declarations reference @reduxjs/toolkit rather than immer.

    2.14.0release notes

  • RTK declares and exports its own Patch type with the same shape as Immer's, so emitted declarations reference @reduxjs/toolkit rather than immer.

    2.14.0release notes

  • A new exported type describes a query cache entry for a definition.

    2.14.0release notes

  • removeMany accepts a { where } filter and removes entities whose fields match all supplied values using ===; an empty filter removes nothing.

    2.14.0release notes

  • A new exported generic type describes the removeMany filter.

    2.14.0release notes

  • api.util.selectAllQueryEntries(state) returns memoized cache entries for every endpoint.

    2.14.0release notes

  • getSelectors() now includes selectByIds(state, ids), returning existing entities in the order of ids and skipping missing ids.

    2.14.0release notes

  • api.util.selectEntriesForEndpoint(state, endpointName) returns memoized cache entries for one query or infinite query endpoint, including each queryCacheKey.

    2.14.0release notes

  • RTK Query fulfilled and rejected-with-value thunk metadata now includes a per-store sequence counter, allowing request ordering to be determined.

    2.14.0release notes

  • RTK Query fulfilled and rejected-with-value thunk metadata now includes startedTimeStamp, matching the request's pending action.

    2.14.0release notes

  • A new type describes the action that addListener actually dispatches.

    2.14.0release notes

  • A new type describes the action that removeListener actually dispatches.

    2.14.0release notes

  • This hook result type is now exported from @reduxjs/toolkit/query/react for wrapping hooks with a generic selectFromResult.

    2.14.0release notes

  • RTK declares and exports its own WritableDraft type with the same shape as Immer's.

    2.14.0release notes

  • The infinite query hook result type now includes the page error flags.

    2.13.0release notes

  • RTK Query hook options types are exported for reuse, so you no longer need to extract them with Parameters.

    2.12.0release notes

  • The RTK package now includes agent skill files for using and migrating to modern RTK, managing client and server state, and handling side effects.

    2.12.0release notes

  • Adds an option for infinite queries that, when false, refetches only the first cached page and shrinks the cache from N pages to 1.

    2.11.0release notes

  • Adds middleware to the dynamic middleware instance after store setup.

    2.0.0upgrade guide

  • Provides async thunk creation for a customized createSlice.

    2.0.0upgrade guide

  • Creates a customized createSlice with asyncThunk support when configured with asyncThunkCreator.

    2.0.0upgrade guiderelease notes

  • Combines slices or objects of slices into a reducer, using slice names as state keys, and supports runtime reducer injection and lazy-loaded slice types.

    2.0.0upgrade guiderelease notes

  • The creator callback syntax provides asyncThunk for declaring an async thunk inside createSlice.

    2.0.0upgrade guide

  • The creator callback syntax provides preparedReducer for a case reducer with a prepare callback.

    2.0.0upgrade guide

  • The creator callback syntax provides create.reducer for defining a normal case reducer.

    2.0.0upgrade guide

  • Adds a settled matcher for async thunk actions.

    2.0.0release notes

  • A dynamic middleware API supports adding middleware at runtime.

    2.0.0release notes

  • Adds middleware to the store dynamically at runtime.

    2.0.0release notes

  • Adds an Id generic argument so item IDs are strongly typed, with inference from the entity id field or selectId return type.

    2.0.0upgrade guiderelease notes

  • Slices can define selectors directly; generated selectors assume the slice is mounted under slice.name, and getSelectors supports an alternate state location.

    2.0.0release notes

  • A creator callback syntax lets reducers define case reducers, prepared reducers, and async thunks inside createSlice.

    2.0.0release notes

  • This is now the primary build artifact, with a CJS artifact and a legacy ESM copy also published.

    2.0.0release notes

  • Accepts an options object as its second argument, allowing a preferred createSelector method to memoize generated selectors.

    2.0.0upgrade guide

  • Generates slice selectors using an alternate state location when passed a selectSliceState function.

    2.0.0upgrade guiderelease notes

  • The reducer generated by combineSlices has an inject method for dynamically adding slices at runtime.

    2.0.0upgrade guide

  • The new utility checks whether an unknown value is an action object.

    2.0.0upgrade guiderelease notes

  • Adds a cancel method to listenerApi.

    2.0.0release notes

  • Adds a method to throw if the listener has been cancelled.

    2.0.0release notes

  • Dynamic middleware includes a React hook integration that automatically adds middleware to the store and returns the updated dispatch method.

    2.0.0upgrade guide

  • createSlice reducers can use a creator callback syntax to define case reducers, prepared reducers, and async thunks; the existing object syntax remains standard.

    2.0.0upgrade guiderelease notes

  • A browser ESM file is available for loading the package from a CDN such as Unpkg.

    2.0.0release notes

  • A second ESM build artifact is provided to support Webpack 4.

    2.0.0release notes

  • Adds a utility for selecting cached arguments for a query.

    2.0.0release notes

  • createSlice accepts selectors directly; generated selectors assume the slice is mounted under its name in the root state.

    2.0.0upgrade guide

  • Adds a slice method for looking up the slice state at its default root-state location.

    2.0.0upgrade guiderelease notes

  • The basic Redux Thunk middleware is now available as a named export.

    2.0.0upgrade guide

  • Customization through withExtraArgument is now available as a named export.

    2.0.0upgrade guide

  • Generates TypeScript types for reducers that will be added later.

    2.0.0upgrade guide

Performance 7

  • The Api type uses the core module type directly and ApiModules has variance annotations, reducing type instantiations and check time without runtime changes.

    2.14.0release notes

  • esbuild can now tree-shake createAsyncThunk when a bundle imports only createSlice, shrinking that bundle by about 1 kB (brotli).

    2.14.0release notes

  • Dispatch work is reduced in createAction.match, createReducer, listener middleware, and the RTK Query reducer, improving performance for actions those components do not need to handle.

    2.14.0release notes

  • RTK Query records subscription changes by cache key and writes one patch per changed key; non-subscribing requests no longer schedule a sync.

    2.14.0release notes

  • Composed middleware chains are cached when the middleware list has not changed.

    2.13.0release notes

  • Production builds extract error message strings, saving about 1000 bytes from production bundles.

    2.0.0upgrade guide

  • Subscription status values are synced to Redux state less often to improve performance.

    2.0.0upgrade guiderelease notes

Behavior and default changes 17

  • Headers now accept number and boolean values, which are converted to strings.

    2.15.0release notes

  • The serializability check now ignores payload.options.pollingInterval by default; custom ignoredActionPaths should include it.

    2.15.0release notes

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

    2.15.0release notes

  • Polling interval may be a function of the current cache entry; the lowest interval among subscribers wins, and returning zero, a negative number or a non-number disables polling.

    2.15.0release notes

  • Polling skips while unfocused only when every polling subscriber sets this option; non-polling subscribers do not affect it.

    2.15.0release notes

  • RTK Query hooks warn in development when they render with a different store than the one they first subscribed to; key the Provider to remount when swapping stores.

    2.14.0release notes

  • Development builds now warn when updateCachedData is called before the entry has data, because the call does nothing.

    2.14.0release notes

  • Bad entries are skipped individually instead of failing the batch; unknown or mutation endpoint names and throwing providesTags callbacks are skipped with development warnings.

    2.14.0release notes

  • The sorted adapter merges multiple updates for the same ID before applying them.

    2.13.0release notes

  • Listener middleware matcher types now accept interface-based type guards as well as type-based definitions.

    2.12.0release notes

  • Sets the accept header based on the selected responseHandler, choosing JSON or text.

    2.9.2release notes

  • Stops retrying when the request's AbortSignal is aborted.

    2.9.2release notes

  • configureStore adds autoBatchEnhancer by default, delaying subscriber notifications for multiple low-priority actions and improving performance without manual store configuration.

    2.0.0upgrade guiderelease notes

  • Adds autoBatchEnhancer to the store setup by default so subscribers can benefit from improved performance without manual store configuration.

    2.0.0release notes

  • Custom contexts are typed as ReactReduxContextValue | null; hooks account for null by throwing an error without affecting their return type.

    2.0.0upgrade guide

  • createSelector checks for common mistakes, including input selectors that return new references and result functions that immediately return their argument; checks can be customized at selector creation or globally.

    2.0.0upgrade guide

  • Package definitions now use the exports field, with a modern ESM build as the primary artifact and CJS retained for compatibility.

    2.0.0upgrade guide

Tooling 5

  • A named public type improves editor hover readability.

    2.15.0release notes

  • @types/react is now an optional peer dependency so TypeScript can find RTK's React entry-point types with isolated package-manager layouts.

    2.14.0release notes

  • Runs the codemod that converts a slice file to the reducer builder callback syntax.

    2.0.0upgrade guide

  • The codemods package provides transforms for migrating object syntax to builder syntax.

    2.0.0upgrade guiderelease notes

  • Provides a codemod to convert an existing slice to the new reducer builder callback syntax.

    2.0.0upgrade guide

Fixes and other changes 62

  • Wrapping createSlice in a generic helper now preserves the prepare callback's parameter types.

    2.15.0release notes

  • The entity adapter preserves ids order when an update changes an entity's id.

    2.15.0release notes

  • timeout now works when the request passes its own signal.

    2.15.0release notes

  • Each initiate() promise now resolves with its own request's result, captured when that request's fulfilled or rejected action reaches the store.

    2.15.0release notes

  • Invalidating an entry with a running request waits for that request to finish, then refetches subscribed entries or removes unsubscribed ones.

    2.15.0release notes

  • A hook with skip: true no longer throws on a store without the API middleware; a non-skipped hook still throws from initiate()'s check.

    2.15.0release notes

  • The raf fallback no longer throws a cancelAnimationFrame ReferenceError in test environments that delete window globals during teardown.

    2.14.0release notes

  • It only resolves for a response from a request started while that lifecycle was waiting, preventing discarded late responses from resolving a later lifecycle.

    2.14.0release notes

  • Listener middleware no longer leaves timers running after condition is cancelled or its action arrives first.

    2.14.0release notes

  • Listener middleware no longer leaves timers running after delay is cancelled or the action arrives first.

    2.14.0release notes

  • The dispatch result is now typed as void, matching runtime behavior.

    2.14.0release notes

  • The dispatch result is now typed as boolean, matching runtime behavior.

    2.14.0release notes

  • A null body no longer throws before the request is sent.

    2.14.0release notes

  • Explicit content-type headers are preserved for ArrayBuffer, typed array, and Blob bodies; they are still removed for FormData and JSON content types on non-JSON bodies, with a case-insensitive check.

    2.14.0release notes

  • In a mutation's onQueryStarted, getCacheEntry now finds the entry for fixedCacheKey mutations instead of returning uninitialized.

    2.14.0release notes

  • Removal timers are cleared when a key gets a subscriber or is removed, and cache hits from subscribe: false calls no longer push back removal indefinitely.

    2.14.0release notes

  • Query arguments containing NaN no longer cause an endless refetch loop when the query errors.

    2.14.0release notes

  • Synchronous throws are caught and logged with console.error.

    2.14.0release notes

  • Polling stops after the last unsubscribe, skips when a request is pending, stops when an entry is removed, and reschedules when a subscriber switches to a slower interval.

    2.14.0release notes

  • Values above 2^31-1 ms are clamped with a development warning to avoid setTimeout overflow.

    2.14.0release notes

  • Reset now clears the subscription sync timer and delayed tag invalidation state so previously scheduled work cannot run afterward.

    2.14.0release notes

  • An overlapping refetch stays registered as the running query, so later calls join it and aborting it works.

    2.14.0release notes

  • Circular references in state or actions are now reported as non-serializable values instead of overflowing the stack.

    2.14.0release notes

  • Focus and online events now work with more than one store.

    2.14.0release notes

  • A due poll now reads the current skipPollingIfUnfocused value instead of the value present when its timer was set.

    2.14.0release notes

  • Infinite-query page triggers and initiate no longer send requests when the query argument is skipToken.

    2.14.0release notes

  • Listener middleware no longer leaves timers running after take is cancelled or the action arrives first.

    2.14.0release notes

  • fetchBaseQuery clears its timeout timer when a request finishes and reports a timeout during response body reading as TIMEOUT_ERROR.

    2.14.0release notes

  • A failed upsert over an existing entry no longer leaves that entry stuck in pending.

    2.14.0release notes

  • Its internal state proxy cache is now scoped per instance, preventing multiple combined reducers from interfering with each other.

    2.13.0release notes

  • rejectedWithValue is now set correctly when rejectWithValue is called with a falsy payload.

    2.13.0release notes

  • setAll keeps the last item when given duplicate IDs, matching setMany.

    2.13.0release notes

  • A URL is treated as absolute only when it starts with a scheme.

    2.13.0release notes

  • The middleware now handles circular references in state.

    2.13.0release notes

  • Fetching past the end of an infinite query list no longer triggers onQueryStarted.

    2.13.0release notes

  • Lazy query hooks now re-subscribe when effects restart while hook state is preserved, such as with Fast Refresh or Activity.

    2.13.0release notes

  • Polling checks current cache state when each poll fires, so focus loss after scheduling is respected and polling stops if the cache entry was removed.

    2.13.0release notes

  • Rehydrating state no longer errors when an endpoint name has no definition.

    2.13.0release notes

  • Tags with falsy IDs, such as 0, now invalidate and clean up correctly.

    2.13.0release notes

  • Queued tag invalidations are no longer run too early and lost when a duplicate query request is rejected by the thunk condition.

    2.13.0release notes

  • RTK now supports TypeScript 7.0 and 7.1. The tested support matrix is TypeScript 5.6+.

    2.13.0release notes

  • data now reflects updateQueryData cache changes made while a refetch is in flight.

    2.13.0release notes

  • isSuccess now stays false during an unrelated re-render while a query is refetching after an error.

    2.13.0release notes

  • The enhancer's requestAnimationFrame timer now has a 100ms timeout fallback so updates flush when rAF does not work in background tabs or opened windows.

    2.12.0release notes

  • The isSuccess status flag stays true when switching infinite query cache entries, preventing accidental UI flashes.

    2.12.0release notes

  • AbortSignal handling falls back to a plain Error when DOMException is unavailable, including in React Native environments.

    2.11.2release notes

  • The type now correctly includes the fetchNextPage and fetchPreviousPage fields.

    2.11.2release notes

  • Reworked AbortController handling to avoid an error in a rare case involving resetApiState and retry().

    2.11.1release notes

  • Fixes the immutability development middleware so regex values in ignoredPaths are tested as regexes rather than treated as strings.

    2.11.0release notes

  • Fixes an issue where byte-shaving work in 2.10 caused window access to break in SSR.

    2.10.1release notes

  • Improves type inference when PreloadedState might not match the incoming type, such as with persisted values.

    2.10.0release notes

  • Fixes the calculation of whether a request is active when checking for cache entry cleanup.

    2.9.2release notes

  • Does not set the content-type header for non-JSONifiable request bodies such as FormData, allowing the browser to set it.

    2.9.2release notes

  • Returns unknown errors as {error} instead of rethrowing them, as a base query is supposed to.

    2.9.2release notes

  • Respects maxRetries when retrying after unknown errors, as it already did for known errors.

    2.9.2release notes

  • Internal subscription data is per-store again, preventing subscription IDs from appearing across SSR requests.

    2.9.2release notes

  • Initiates requests without adding a subscription, so cache entries remain only for the keepUnusedDataFor period unless the app subscribes.

    2.9.2release notes

  • Sorted entity adapters now keep the first occurrence when addMany receives duplicate IDs.

    2.9.1release notes

  • RTK Query types ensure data is non-undefined when isSuccess is true, including with exactOptionalPropertyTypes.

    2.9.1release notes

  • clearListeners can cancel effects that have become unsubscribed.

    2.9.1release notes

  • Sorted entity adapters now keep only unique IDs in state.ids when setMany receives duplicate IDs.

    2.9.1release notes

  • RTK Query now always tracks cache entries and removes them as needed, addressing issues with unsubscribed initiations and lazy-query promise resolution.

    2.0.0upgrade guiderelease notes