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

accountStatus first status should be connecting ? #6143

Open
sshmaxime opened this issue Feb 2, 2025 · 3 comments
Open

accountStatus first status should be connecting ? #6143

sshmaxime opened this issue Feb 2, 2025 · 3 comments

Comments

@sshmaxime
Copy link

Hello, when page refresh/load the account status should be connecting ? If an account/wallet isn't there I need to redirect users but if I redirect on disconnected, if I refresh the page it redirect instantly.

Could the status start at connecting and resolves at connected or disconnected ?

Copy link

linear bot commented Feb 2, 2025

@linear linear bot assigned joaquim-verges and MananTank and unassigned joaquim-verges and MananTank Feb 4, 2025
@joaquim-verges
Copy link
Member

Hey @sshmaxime sorry for the delay on this.

We discussed a possible change for this case though it won't be state connecting because there are cases where the connection is simply not triggered at all.

In the meantime a workaround that you could try is simply delaying your redirect until the auto connection state has had a chance to kick in, which should be only one or 2 frames.

@sshmaxime
Copy link
Author

Hey, if i can avoid a weird workaround I'd be grateful.

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

No branches or pull requests

4 participants
@joaquim-verges @MananTank @sshmaxime and others