State is data that changes over time. Where and how you manage state significantly impacts application architecture, performance, and complexity.
| 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 |
يشرح إدارة الحالة في تطبيقات الويب بما في ذلك حالة العميل وحالة الخادم وحالة عنوان URL واستراتيجيات التخزين المؤقت. يُستخدم عند مناقشة مكان تخزين الحالة، أو الاختيار بين الحالة المحلية والعالمية، أو تنفيذ أنماط جلب البيانات. المصدر: kinfe123/fm-skills.