state-management-patterns
Installation
SKILL.md
State Management Patterns
Overview
State is data that changes over time. Where and how you manage state significantly impacts application architecture, performance, and complexity.
Types of State
| Type | Examples | Characteristics |
|---|---|---|
| UI State | Modal open, tab selected, form input | Local, ephemeral |
| Server State | User data, products, posts | Remote, cached, async |
| URL State | Page, filters, search query | Shareable, bookmarkable |
| Browser State | localStorage, sessionStorage, cookies | Persistent, limited |
| Application State | Auth, theme, user preferences | Global, session-scoped |