Skip to content

chore(site): clean up mocks after each test #12805

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 11 commits into from
Apr 1, 2024
Prev Previous commit
Next Next commit
Refactor useEffect deps
  • Loading branch information
BrunoQuaresma committed Mar 28, 2024
commit d9569cbb0905709cdd0ea71b5ebb6f529cc4ed60
4 changes: 2 additions & 2 deletions site/src/pages/TerminalPage/TerminalPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const TerminalPage: FC = () => {
window.removeEventListener("resize", listener);
terminal.dispose();
};
}, [theme, renderer, config.isLoading, terminalWrapperRef, handleWebLinkRef]);
}, [config.isLoading, renderer, theme.palette.background.default]);

// Updates the reconnection token into the URL if necessary.
useEffect(() => {
Expand All @@ -149,7 +149,7 @@ const TerminalPage: FC = () => {
replace: true,
},
);
}, [searchParams, navigate, reconnectionToken]);
}, [navigate, reconnectionToken, searchParams]);

// Hook up the terminal through a web socket.
useEffect(() => {
Expand Down