Skip to content

Fix/issue 1 wallet state navigation - #149

Merged
N-thnI merged 2 commits into
Vero-protocol:mainfrom
Meet-hybrid:fix/issue-1-wallet-state-navigation
Aug 3, 2026
Merged

Fix/issue 1 wallet state navigation#149
N-thnI merged 2 commits into
Vero-protocol:mainfrom
Meet-hybrid:fix/issue-1-wallet-state-navigation

Conversation

@Meet-hybrid

@Meet-hybrid Meet-hybrid commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Description:
This PR addresses a bug where the Guardian’s connected Freighter wallet address is lost when navigating from the home page to deeper dashboard views. The WalletContext was re-initializing, causing unexpected disconnect loops.

Changes:

Persist connected wallet address in window.localStorage (or secure session cache) after successful association.

Read cached address during initial useEffect setup in WalletContext.tsx.

Add safe handling for disconnect events by clearing cached variables across state systems.

Acceptance Criteria:

Connected address remains stable across page navigation.

Disconnect events properly clear cached state without triggering loops.

closes #1

@N-thnI
N-thnI merged commit 86eb73d into Vero-protocol:main Aug 3, 2026
1 of 2 checks passed
N-thnI added a commit that referenced this pull request Aug 4, 2026
PR #149's squash-merge onto main independently-added-but-differently-
named MockSocket/MockedSocket mock types in both files without
conflicting line-for-line, so git's merge silently concatenated both
versions instead of flagging a conflict. The result was invalid
TypeScript (duplicate type/function/jest.mock declarations), breaking
typecheck on main. Keeps the single MockedSocket version, matching
what was on main before the merge.
N-thnI added a commit that referenced this pull request Aug 4, 2026
PR #149's squash-merge onto main independently-added-but-differently-
named MockSocket/MockedSocket mock types in both files without
conflicting line-for-line, so git's merge silently concatenated both
versions instead of flagging a conflict. The result was invalid
TypeScript (duplicate type/function/jest.mock declarations), breaking
typecheck on main. Keeps the single MockedSocket version, matching
what was on main before the merge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1: [Bug] Freighter connection drops state during page navigation

2 participants