Skip to content

Conversation

magiziz
Copy link
Contributor

@magiziz magiziz commented Apr 29, 2025

Description

When attempting to reconnect after disconnecting, the EP opens the appkit account modal view. This happens because the appkit state is not reset after disconnection.

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Draft PR (breaking/non-breaking change which needs more work for having a proper functionality [Mark this PR as ready to review only when completely ready])
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How has this been tested?

Tested on Uniswap and locally

Examples/Screenshots (Optional)

repro.mov

Checklist

  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@magiziz magiziz requested a review from ganchoradkov April 29, 2025 11:44
@tomiir
Copy link
Contributor

tomiir commented Apr 29, 2025

Missing changesets 🙏

@magiziz magiziz changed the title fix: reset appkit state on disconnect [DO NOT MERGE] fix: reset appkit state on disconnect Apr 29, 2025
@magiziz magiziz force-pushed the fix/reset-apkt-state-on-disconnect branch from 7b6e73d to aa0bd7f Compare April 29, 2025 13:43
@magiziz
Copy link
Contributor Author

magiziz commented Apr 30, 2025

Will try to do this on the appkit level

@magiziz magiziz closed this Apr 30, 2025
@magiziz magiziz reopened this Apr 30, 2025
@magiziz magiziz force-pushed the fix/reset-apkt-state-on-disconnect branch from d81293f to 9a6afcd Compare April 30, 2025 14:49
@@ -619,6 +619,7 @@ export class EthereumProvider implements IEthereumProvider {
...options,
universalProvider: this.signer as any,
manualWCControl: true,
enableNetworkSwitch: false,
Copy link
Contributor Author

@magiziz magiziz Apr 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is done on the appkit side. but setting enableNetworkSwitch to false will make sure the network modal doesn’t open just in case appkit has any issues again

@magiziz magiziz changed the title [DO NOT MERGE] fix: reset appkit state on disconnect fix: reset appkit state on disconnect Apr 30, 2025
@magiziz magiziz changed the title fix: reset appkit state on disconnect fix: prevent network modal from opening randomly on reconnect Apr 30, 2025
@magiziz magiziz changed the title fix: prevent network modal from opening randomly on reconnect [DO NOT MERGE] fix: prevent network modal from opening randomly on reconnect Apr 30, 2025
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.

2 participants