What problem does it solve?
Redux Toolkit and RTK Query patterns often require boilerplate and boilerplate to set up scalable state management and reliable API layers. This Skill provides a structured reference to reduce boilerplate, improve consistency, and accelerate development across React Native and Expo projects.
Core Features & Use Cases
- Store setup with configureStore and RTK Query integration
- Feature-based slices, typed hooks, and selectors for maintainable code
- Centralized API layer using baseApi, query and mutation endpoints, and tag-based cache invalidation
- Optimistic updates, streaming, and pagination patterns for responsive UIs
- Testing guidance for slices, selectors, and RTK Query endpoints
Quick Start
Build a Redux Toolkit + RTK Query store by configuring a baseApi, creating a couple of feature slices, and injecting endpoints into components to fetch and mutate data. Then, demonstrate typical flows like listing items, updating a record, and handling cache invalidation.