Navigate:
All Reposredux-toolkit
~$REDUXT0.0%

Redux Toolkit: Standard toolset for Redux development

Opinionated Redux utilities with simplified setup and Immer integration.

LIVE RANKINGS • 06:51 AM • STEADY
OVERALL
#224
39
DEVELOPER TOOLS
#45
8
30 DAY RANKING TREND
ovr#224
·Devel#45
STARS
11.2K
FORKS
1.3K
DOWNLOADS
2.9K
7D STARS
+4
7D FORKS
+1
See Repo:
Share:

Learn more about redux-toolkit

Redux Toolkit is a library that provides utilities for building Redux applications. It wraps Redux core functionality with simplified APIs that handle common configuration patterns, including store setup, reducer definition, and middleware integration. The library uses Immer internally to enable immutable state updates with mutative-style code, and includes Redux Thunk middleware by default. It serves as the recommended approach for new Redux applications and existing projects looking to reduce setup complexity.

redux-toolkit

1

Slice-based architecture

The createSlice API combines action creators, action types, and reducers into a single definition, reducing the amount of manual wiring required. This approach groups related Redux logic together rather than spreading it across separate files.

2

Immer integration

Built-in use of the Immer library allows developers to write reducer logic using standard mutative syntax while maintaining immutability guarantees. State updates like state.todos[3].completed = true work without manual object spreading or cloning.

3

RTK Query data fetching

Includes an optional data fetching and caching layer that handles common patterns like request deduplication, cache invalidation, and loading states. This reduces the need to write custom async middleware or data management logic.


import { configureStore } from '@reduxjs/toolkit';

const store = configureStore({
  reducer: {
    counter: counterReducer
  }
});

vv2.10.1

Fixes SSR breakage caused by improper window access introduced in v2.10.0's byte-shaving optimizations.

  • Upgrade immediately if running server-side rendering; v2.10.0 crashes on window access during SSR.
  • No migration steps required; patch restores safe window checks removed in previous release.
vv2.10.0

Immer upgraded to 10.2 with strict iteration disabled by default for ~10% speedup; may break apps using symbol keys in Redux state.

  • Call setUseStrictIteration(true) if your Redux state uses symbol keys, as RTK now defaults to false for performance.
  • Expect ~0.8KB bundle reduction and faster RTKQ tag invalidation from internal optimizations and import deduplication.
vv2.9.2

Fixes SSR subscription data leak from recent perf changes; improves retry/abort handling and resolves prefetch cache cleanup.

  • Update SSR apps using RTKQ to eliminate internal subscription ID leakage introduced in v2.9.0 perf optimizations.
  • Verify prefetch usage no longer creates permanent cache entries; subscriptions now clean up after keepUnusedDataFor period.


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers