We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78ec07b commit 46f2615Copy full SHA for 46f2615
site/src/pages/TerminalPage/TerminalPage.tsx
@@ -470,7 +470,7 @@ const useReloading = (isDisconnected: boolean) => {
470
471
// Retry connection on key press when it is disconnected
472
useEffect(() => {
473
- if (!isDisconnected) {
+ if (!isDisconnected || status === "reloading") {
474
return;
475
}
476
@@ -484,7 +484,7 @@ const useReloading = (isDisconnected: boolean) => {
484
return () => {
485
document.removeEventListener("keydown", keyDownHandler, true);
486
};
487
- }, [isDisconnected]);
+ }, [status, isDisconnected]);
488
489
return {
490
status,
0 commit comments