Skip to content

[Frontend] -- Implement Wallet Connection State Persistence #829

@Devsol-01

Description

@Devsol-01

Description

Improve wallet connection UX by properly persisting connection state and handling reconnection scenarios.

Current Issues

  • Wallet state restoration on page refresh is basic
  • No handling for wallet disconnection from extension
  • No reconnection prompt when wallet is locked
  • Network changes not always detected properly

Tasks

  • Improve session restoration logic in WalletContext
  • Add wallet disconnection detection
  • Implement reconnection flow when wallet is locked
  • Add "Reconnect" button when connection is lost
  • Handle network switching more gracefully
  • Add connection status indicator
  • Persist user's last connected network preference
  • Add connection timeout handling

Acceptance Criteria

  • Wallet state persists across page refreshes
  • Disconnection from extension detected
  • User prompted to reconnect when needed
  • Network changes handled smoothly
  • Connection status clearly indicated
  • No console errors on connection/disconnection
  • Works with Freighter wallet extension

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions