1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-31 09:24:31 +03:00

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.
This commit is contained in:
Quentin Gliech
2024-07-31 12:38:17 +02:00
parent c7cfd76cbd
commit c3b2d163a9

View File

@ -33,6 +33,7 @@ const router = createRouter({
basepath: config.root,
defaultErrorComponent: GenericError,
defaultPreload: "intent",
defaultPendingMinMs: 0,
context: { client },
});