Redux Toolkit MIT-licensed toolkit for Redux store setup, slice reducers, asynchronous actions and optional RTK Query data caching.
Overview 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.[2]
Contents 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.[2] [6]
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.[3]
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.[4]
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.[5]
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.[2]
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.[6]
License and substitution Redux Toolkit is MIT-licensed. It can replace 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.[1] [2] [7]
Screenshots Redux logo, also used by Redux Toolkit.
Captured 2026-10-12 · Redux logo by Matthew Johnston, dedicated to the public domain under CC0. Official PNG retrieved 2026-10-12; the same logo identifies Redux Toolkit on its official website. Unchanged apart from proportional resizing and site image conversion. · Source page · CC0 Also included: 5 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.