From c3b2d163a99c7c78bbaee6f54f08e01878d514c3 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 31 Jul 2024 12:38:17 +0200 Subject: [PATCH] frontend: don't wait before rendering The default behaviour of Tanstack Router is to wait at least 500ms before showing the rendered route, so that the loading spinner doesn't flicker. We don't want that, as we don't seem to have a working loading spinner anyway, and this just unnecessarily adds FCP latency. --- frontend/src/main.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index 89467d02..7921f458 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -33,6 +33,7 @@ const router = createRouter({ basepath: config.root, defaultErrorComponent: GenericError, defaultPreload: "intent", + defaultPendingMinMs: 0, context: { client }, });