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 2f8819e commit 399a82aCopy full SHA for 399a82a
src/frontend/src/pad/controls/StateIndicator.tsx
@@ -4,9 +4,13 @@ import '../styles/index.scss';
4
5
export const StateIndicator: React.FC = () => {
6
const { data: isAuthenticated, isLoading: isAuthLoading } = useAuthCheck();
7
+
8
+ // Only fetch workspace state if authenticated
9
const { data: workspaceState, isLoading: isWorkspaceLoading } = useWorkspaceState({
10
queryKey: ['workspaceState'],
11
enabled: isAuthenticated === true && !isAuthLoading,
12
+ // Explicitly set refetchInterval to false when not authenticated
13
+ refetchInterval: isAuthenticated === true ? undefined : false,
14
});
15
16
const getStateClassName = () => {
0 commit comments