# Redux Toolkit

MIT\-licensed toolkit for Redux store setup, slice reducers, asynchronous actions and optional RTK Query data caching\.

ID: Q141 · Revision: 125

Type: software · License: MIT[^license] · Status: active

Website: https://redux.js.org/toolkit



Redux Toolkit is the standard toolkit for writing Redux state logic\. It supplies store configuration, slice and action helpers and asynchronous\-action utilities, with optional RTK Query entry points for server\-data fetching\. React applications use separate React Redux bindings\. It provides structure for shared state rather than eliminating the need to decide what belongs in a store\.[^overview]

## Organizing state changes

configureStore supplies a common store setup, while createSlice groups state with reducer functions and generates corresponding action creators\. React Redux supplies the React binding layer separately\. This organization can make generated state transitions easier to review as explicit actions, but it also introduces conventions that an application must follow\. The toolkit is not a requirement to put every local input or temporary UI value into global state\.[^overview][^next]

## What draft\-style reducer code means

The reducer helpers use Immer so that draft changes can produce immutable results\. A case reducer must either modify its draft or return a replacement, not do both\. Assigning a new object to the local state variable alone does not replace the stored state; it must be returned\. Mutation\-looking code outside the Immer\-managed context has different semantics\. These boundaries matter when adapting generated snippets or extracting reusable reducer functions\.[^immer]

## A resolved dispatch is not necessarily success

createAsyncThunk produces pending, fulfilled and rejected actions\. Its dispatch promise resolves with the resulting action even when the underlying operation failed\. Callers that need normal payload\-or\-error behavior can use unwrap, while rejectWithValue carries an application\-specific rejected payload\. A generated success notification attached only to promise resolution can therefore misreport a failed operation unless the action result is interpreted correctly\.[^thunk]

## Serializability checking is diagnostic

The serializability middleware detects problematic values in state or actions and logs them to the console\. Its checks and ignored paths can be configured, and its plain\-value logic does not accept Date or Map instances by default\. This is a development diagnostic, not automatic serialization, encryption or persistence\. Suppressing a warning does not itself supply a data\-conversion strategy\.[^serial]

## Optional server\-state functionality

RTK Query is included through separate entry points and handles API\-oriented fetching and caching\. It is optional rather than an automatic consequence of defining slices or using createAsyncThunk\. That distinction matters when comparing Redux Toolkit with a compact client\-state store: replacing local state management and replacing a server\-data cache are related but separate tasks\.[^overview]

## Request isolation in server\-rendered applications

The Next\.js App Router guide requires per\-request store creation, matching hydration data and deliberate handling of route\-specific state\. It says React Server Components should not read or write the Redux store\. The same guide distinguishes this from a client\-only SPA, where a global singleton is a different situation\. Copying a simple client example into server code without revisiting scope risks mixing request data\.[^next]

## License and substitution

Redux Toolkit is MIT\-licensed\. It can replace [Zustand](/zustand) for appropriate shared\-state workflows when the project adopts its actions, reducers and subscription integration\. A migration must preserve update semantics and request isolation rather than simply rename dependencies\. No benchmark, installation or application migration was performed for this article\.[^license][^overview][^zustand]

## Capabilities and substitutions

### Store and slice construction — supported

configureStore and createSlice reduce manual Redux setup and action/reducer boilerplate\.[^overview]

Use case: Structured shared application state and action\-based updates · Platforms: JavaScript/TypeScript applications, React through React Redux bindings · Region: Version, build and integration requirements apply

### Draft\-style reducer updates — supported

Immer\-backed reducers allow draft changes, but cannot both mutate a draft and return a replacement in the same case\.[^immer]

Use case: Structured shared application state and action\-based updates · Platforms: JavaScript/TypeScript applications, React through React Redux bindings · Region: Version, build and integration requirements apply

### Async result actions — supported

createAsyncThunk emits lifecycle actions; the dispatch promise resolves to an action, with unwrap available for payload/error handling\.[^thunk]

Use case: Structured shared application state and action\-based updates · Platforms: JavaScript/TypeScript applications, React through React Redux bindings · Region: Version, build and integration requirements apply

### Non\-serializable state diagnostics — supported

Middleware logs detected values and permits configurable checks; it does not convert arbitrary data into serialized form\.[^serial]

Use case: Structured shared application state and action\-based updates · Platforms: JavaScript/TypeScript applications, React through React Redux bindings · Region: Version, build and integration requirements apply

### SSR\-safe global singleton store — unsupported

The Next\.js App Router guide requires stores per request and excludes RSC store reads/writes\.[^next]

Use case: Structured shared application state and action\-based updates · Platforms: JavaScript/TypeScript applications, React through React Redux bindings · Region: Version, build and integration requirements apply

### [Substitute for Zustand](/zustand) — limited

Can replace Zustand for shared application state using Redux actions, slice reducers and React Redux subscriptions\. Existing store actions and selectors need adaptation; the additional architecture is a tradeoff, not demonstrated universal superiority\.[^overview][^immer][^zustand]

Use case: Structured shared application state and action\-based updates · Platforms: JavaScript/TypeScript applications, React through React Redux bindings · Region: Version, build and integration requirements apply

## References

[^license]: [Redux Toolkit license](<https://github.com/reduxjs/redux-toolkit/blob/master/LICENSE>) — MIT conditions (vendor; retrieved 2026-10-07T23:17:41Z)

[^overview]: [Redux Toolkit getting started](<https://redux.js.org/toolkit/introduction/getting-started>) — Store/slice helpers, React bindings and RTK Query separation (vendor; retrieved 2026-10-07T23:17:02Z)

[^immer]: [Redux Toolkit Immer reducers](<https://redux.js.org/toolkit/usage/immer-reducers>) — Draft mutation versus returned state and replacement pitfalls (vendor; retrieved 2026-10-07T23:17:51Z)

[^thunk]: [createAsyncThunk reference](<https://redux.js.org/toolkit/api/createAsyncThunk>) — Resolved result actions, unwrap and rejectWithValue (vendor; retrieved 2026-10-07T23:18:05Z)

[^serial]: [Serializability middleware](<https://redux.js.org/toolkit/api/serializabilityMiddleware>) — Console diagnostics and configurable serializable checks (vendor; retrieved 2026-10-07T23:18:21Z)

[^next]: [Redux with Next\.js](<https://redux.js.org/usage/nextjs>) — Per\-request stores, hydration and RSC limitations (vendor; retrieved 2026-10-07T23:17:41Z)

[^zustand]: [Zustand overview](<https://github.com/pmndrs/zustand/blob/main/README.md>) — Hook\-based stores and selected subscriptions (vendor; retrieved 2026-10-07T23:17:14Z)

Source revision: https://substitutefor.net/entities/Q141?revision=125
