From e623dad81ffe0aae4a6012930455e100d0c0c7e7 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Thu, 12 Dec 2024 15:49:38 +0100 Subject: [PATCH] =?UTF-8?q?On=20r=C3=A9cup=C3=A8re=20pour=20l'instant=20to?= =?UTF-8?q?us=20les=20trains=20sans=20se=20pr=C3=A9occuper=20de=20la=20pag?= =?UTF-8?q?ination?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/GameProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/GameProvider.tsx b/client/components/GameProvider.tsx index 4b3a432..2df79ab 100644 --- a/client/components/GameProvider.tsx +++ b/client/components/GameProvider.tsx @@ -40,7 +40,7 @@ export default function GameProvider({ children }: { children: ReactNode }) { const trainsQuery = useQuery({ queryKey: ['get-trains', game.playerId, auth.token], - queryFn: () => fetch(`${process.env.EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER}/trains/?playerId=${game.playerId}`, { + queryFn: () => fetch(`${process.env.EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER}/trains/?playerId=${game.playerId}&size=10000`, { headers: { "Authorization": `Bearer ${auth.token}` }} ).then(resp => resp.json()), enabled: isAuthValid(auth) && !game.playerId,