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.
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:
useWallet) to manage the Freighter connection state.GABC...1234) in the top navigation bar if a session is recovered.