What problem does it solve?
This Skill establishes deterministic UI behavior by eliminating stale interfaces, flashing loading spinners when cached data exists, and silently swallowed errors during asynchronous data fetching and mutations.
Core Features & Use Cases
- Loading State Patterns: Show loading only when no data exists, prefer skeletons for known content shapes, and avoid spinners that flash on refetch.
- Error Handling: Surface inline, toast, banner, or full-screen errors with retry options and ensure mutations include explicit onError handlers.
- State Management: Provide empty-state requirements, optimistic updates, progressive disclosure, graceful degradation, and button state rules (disable during async operations and show loading indicators).
- Use cases include list and collection views, form submissions with server-side validation, GraphQL queries and mutations, and any component that requires clear user feedback during async operations.
Quick Start
Use the react-ui-patterns skill to audit a React component and provide concrete recommendations to fix loading, error, empty, and button-state issues.