What problem does it solve?
This Skill provides clear, actionable patterns and best practices for managing state effectively in React applications using Redux, reducing complexity and improving maintainability.
Core Features & Use Cases
- Action & Reducer Implementation: Demonstrates type-safe actions, action creators, and reducers for predictable state updates.
- Async Operations: Illustrates patterns for handling asynchronous logic with thunks and
createAsyncThunk.
- Selectors & Memoization: Shows how to efficiently derive state using memoized selectors with
reselect.
- State Normalization: Explains how to structure state for optimal performance and scalability.
- Modern RTK Patterns: Covers
createSlice, createAsyncThunk, and RTK Query for a streamlined Redux experience.
- Use Case: When building a complex dashboard with real-time data updates, use this Skill to structure your Redux store, handle API calls, and ensure efficient data retrieval.
Quick Start
Use the redux-patterns skill to generate a basic Redux slice for managing user data.