Skip to content

Implement Persistent Freighter Wallet Connection & State Recovery #1

Description

@Alhaji-naira

Description:
Currently, the Freighter wallet connection state resets on page reloads. To improve the user experience, we need to implement persistent state management (e.g., using React Context or Zustand) to check for an existing Freighter session when the application mounts.

Acceptance Criteria:

  • Create a custom React hook (e.g., useWallet) to manage the Freighter connection state.
  • On application load, check if the user has previously connected and the session is still valid.
  • Automatically display the user's truncated Stellar public key (e.g., GABC...1234) in the top navigation bar if a session is recovered.
  • Handle the "disconnect" flow gracefully, clearing the local state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions