From 7e6359374fead5d34b451d0f32845a4e5851c551 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Mon, 16 Oct 2023 18:19:15 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(front)=20increase=20classroo?= =?UTF-8?q?m=20poll=20refetch=20interval?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to increase the refetch poll interval on the classroom dashboard. We increase it from 5 seconds to 45 seconds in a first time. --- .../lib_classroom/src/components/DashboardClassroom/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/packages/lib_classroom/src/components/DashboardClassroom/index.tsx b/src/frontend/packages/lib_classroom/src/components/DashboardClassroom/index.tsx index b77bc875ef..0e65420c50 100644 --- a/src/frontend/packages/lib_classroom/src/components/DashboardClassroom/index.tsx +++ b/src/frontend/packages/lib_classroom/src/components/DashboardClassroom/index.tsx @@ -68,7 +68,7 @@ const DashboardClassroom = ({ classroomId }: DashboardClassroomProps) => { const user = useCurrentUser((state) => state.currentUser); const canUpdate = context.permissions.can_update; - const classroomRefetchInterval = useRef(5000); + const classroomRefetchInterval = useRef(45000); const [classroomUrl, setClassroomUrl] = useState(''); const [askUsername, setAskUsername] = useState(false); const [classroomJoined, setClassroomJoined] = useState(false);