Skip to content

Frontend state management and providers #572

Description

@codebestia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programdocumentationImprovements or additions to documentationfrontend

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions