🩹(frontend) enable React Query for token management

Previously, I prevented clients from fetching new tokens when data is stale.
It seems totally wrong. Enabling data refresh addresses potential issues
with random user disconnections.

Please note the data refresh when stale was only disabled for people
who created the room.
This commit is contained in:
lebaudantoine
2024-09-02 10:37:27 +02:00
committed by aleb_the_flash
parent d11bcc5de9
commit a3ef1d4a26

View File

@@ -50,7 +50,6 @@ export const Conference = ({
} = useQuery({
queryKey: fetchKey,
staleTime: 6 * 60 * 60 * 1000, // By default, LiveKit access tokens expire 6 hours after generation
enabled: !initialRoomData,
initialData: initialRoomData,
queryFn: () =>
fetchRoom({