Navigate:
Redux Toolkit
~$REDU0.1%

Redux Toolkit: Standard toolset for Redux development

Opinionated Redux utilities with simplified setup and Immer integration.

LIVE RANKINGS • 10:20 AM • STEADY
OVERALL
#396
55
FRONTEND
#36
7
30 DAY RANKING TREND
ovr#396
·Front#36
STARS
11.2K
FORKS
1.3K
7D STARS
+7
7D FORKS
+3
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.11.2

Updated AbortSignal handling to fall back when DOMException isn't available and improved TypedUseInfiniteQueryHookResult.

  • fix: use a normal Error when DOMException isn't available
  • Include page functions in TypedUseInfiniteQueryHookResult
vv2.11.1

Fixed AbortSignal handling issue in rare reset situations and updated workflows with trusted publishing and TypeScript support.

  • Use trusted publishing and harden workflows
  • Update TS typecheck matrix and add TS native job
  • Officially document TS support
  • Tweaks to AbortSignal logic
v@rtk-query/codegen-openapi@2.2.0

Added new RTKQ codegen config options for outputting regex constants and supporting explicit tag overrides.

  • feat: (codegen) output regex patterns for generated schemas
  • feat(codegen): support explicit tag overrides without altering defaults


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers