fix(ui): re-enable machine state query but disable polling

This commit is contained in:
Brian McGee
2025-09-02 21:09:13 +01:00
parent dc0ec3443e
commit 09e5f78aae

View File

@@ -152,8 +152,6 @@ export const useMachineStateQuery = (clanURI: string, machineName: string) => {
const client = useApiClient();
return useQuery<MachineState>(() => ({
queryKey: [...machineKey(clanURI, machineName), "state"],
staleTime: 60_000, // 1 minute stale time
enabled: false,
queryFn: async () => {
const apiCall = client.fetch("get_machine_state", {
machine: {