Write apps/web/docs/concepts-state-management.md covering AuthProvider/AuthContext/useAuth, WalletContext, ProtectedRoute and app/providers.tsx: the provider tree, what state lives where, and why there is no global store library.
Acceptance criteria:
- The provider nesting order is documented with the reason for it
- Each context's state, actions and consumers are documented
- Documents
ProtectedRoute's redirect behaviour and the loading state that must be handled before it can decide
- Explains the boundary between context state, server state fetched per route, and IndexedDB-persisted state
Write
apps/web/docs/concepts-state-management.mdcoveringAuthProvider/AuthContext/useAuth,WalletContext,ProtectedRouteandapp/providers.tsx: the provider tree, what state lives where, and why there is no global store library.Acceptance criteria:
ProtectedRoute's redirect behaviour and the loading state that must be handled before it can decide