UIステートは、アプリが所有し、ローカルで制御するデータです(トグル、フォーム入力、選択されたタブ)。サーバーステートはサーバー上に存在し、クライアント上にキャッシュされているだけのデータです(取得したユーザー、製品、投稿)。これらは根本的に異なる特性を持ち、異なるツールを必要とします。
主な違い
text
UI state Server state
Ownership you own it (client) the server owns it; client caches
Freshness always current can become STALE (server changed it)
Sync needed? no yes — refetch, invalidate, revalidate
Shared? usually one client shared across users/devices/tabs
Concerns just set/read it caching, loading, errors, retries, dedup
