Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: improve WebSocket error handling in CreateWorkspacePageExperimental #17647

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

Merged
merged 1 commit into from
May 1, 2025

Conversation

jaaydenh
Copy link
Contributor

@jaaydenh jaaydenh commented May 1, 2025

Refactor WebSocket error handling to ensure that errors are only set when the current socket ref matches the active one. This prevents unnecessary error messages when the WebSocket connection closes unexpectedly

This solves the problem of showing error messages because of React Strict mode rendering the page twice and opening 2 websocket connections.

Refactor WebSocket error handling to ensure that errors are only set when the current socket matches the active one. This prevents unnecessary error messages when the WebSocket connection closes unexpectedly
@jaaydenh jaaydenh self-assigned this May 1, 2025
@jaaydenh jaaydenh requested a review from aslilac May 1, 2025 17:54
@jaaydenh jaaydenh merged commit e718c3a into main May 1, 2025
38 checks passed
@jaaydenh jaaydenh deleted the jaaydenh/websocket-strict-mode branch May 1, 2025 23:02
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants