Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset to mainnet on signout #5304

Merged
merged 2 commits into from
Apr 24, 2024
Merged

Conversation

pete-watters
Copy link
Contributor

@pete-watters pete-watters commented Apr 24, 2024

Try out Leather build af1d8bcExtension build, Test report, Storybook, Chromatic

This PR adds a fix that re-sets the network to mainnet on sign out.

I also added another fix to how we are adding some dialogs to the VDOM.

I noticed that we were calling hooks in the settings menu dialogs whenever the parent is rendered and even if they aren't visible. This is a bad problem as was adding to our API requests to network un-necessarily.

@pete-watters pete-watters linked an issue Apr 24, 2024 that may be closed by this pull request
@pete-watters pete-watters marked this pull request as ready for review April 24, 2024 08:45
src/app/common/hooks/use-key-actions.ts Outdated Show resolved Hide resolved
src/app/common/hooks/use-key-actions.ts Outdated Show resolved Hide resolved
src/app/features/settings/settings.tsx Show resolved Hide resolved
@pete-watters pete-watters force-pushed the fix/5239/reset-to-mainnet-on-signout branch from 8f5f630 to 4c24a32 Compare April 24, 2024 14:54
@pete-watters pete-watters changed the title Fix/5239/reset to mainnet on signout Reset to mainnet on signout Apr 24, 2024
@pete-watters pete-watters added this pull request to the merge queue Apr 24, 2024
Merged via the queue into dev with commit 12e229d Apr 24, 2024
28 checks passed
@pete-watters pete-watters deleted the fix/5239/reset-to-mainnet-on-signout branch April 24, 2024 15:51
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.

Cannot connect Ledger in Testnet
3 participants