- Notifications
You must be signed in to change notification settings - Fork907
Commite718c3a
authored
fix: improve WebSocket error handling in CreateWorkspacePageExperimental (#17647)
Refactor WebSocket error handling to ensure that errors are only setwhen the current socket ref matches the active one. This preventsunnecessary error messages when the WebSocket connection closesunexpectedlyThis solves the problem of showing error messages because of ReactStrict mode rendering the page twice and opening 2 websocketconnections.1 parenta226a75 commite718c3a
File tree
1 file changed
+12
-11
lines changed- site/src/pages/CreateWorkspacePage
1 file changed
+12
-11
lines changedLines changed: 12 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 |
| - | |
99 |
| - | |
100 |
| - | |
| 98 | + | |
101 | 99 |
| |
102 | 100 |
| |
103 | 101 |
| |
104 | 102 |
| |
105 | 103 |
| |
106 | 104 |
| |
107 | 105 |
| |
108 |
| - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
109 | 109 |
| |
110 | 110 |
| |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
118 | 119 |
| |
119 | 120 |
| |
120 | 121 |
| |
|
0 commit comments
Comments
(0)