Skip to content

Commit

Permalink
♻️(front) increase classroom poll refetch interval
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lunika committed Oct 17, 2023
1 parent 0c98c91 commit 7e63593
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7e63593

Please sign in to comment.