Redux Toolkit
redux-toolkit.js.org
2
Leaving SiteNav
External Link Disclaimer
You are about to visit redux-toolkit.js.org. This website is not operated by us. We are not responsible for its content or privacy practices.
About this website
Redux Toolkit is the official, opinionated toolset for efficient Redux development created by Mark Erikson and the Redux maintenance team in 2019, designed to address common complaints about Redux boilerplate by providing utilities that simplify store configuration, reducer creation, immutable updates, and data fetching, serving as the recommended way to write Redux logic and adopted by the majority of new Redux applications as the default starting point through the Redux Toolkit query for data fetching and createSlice for state management. The configureStore function provides a pre-configured store with Redux DevTools integration for time-travel debugging, thunk middleware for async logic, serializable check middleware for detecting common mistakes, and immutability checks in development, wrapping the standard createStore with sensible defaults that eliminate the need for manual middleware composition and enhancer configuration. The createSlice function combines action creators and reducers into a single definition, using the Immer library internally to enable writing mutable update logic that produces immutable state updates, eliminating the spread operator boilerplate and manual immutable update patterns that made traditional Redux reducers verbose and error-prone, while automatically generating action type strings and action creators from the reducer functions. The createAsyncThunk function handles the pending, fulfilled, and rejected lifecycle of async operations. The createEntityAdapter provides normalized state management for collections. The RTK Query data fetching API auto-generates hooks for API endpoints with caching. The listener middleware for side effects. Designed for React developers using Redux.
Statistics
2
Views
0
Clicks
0
Like
0
Dislike