Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
frontend: don't wait before rendering
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sandhose committed Aug 1, 2024
1 parent c7cfd76 commit c3b2d16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const router = createRouter({
basepath: config.root,
defaultErrorComponent: GenericError,
defaultPreload: "intent",
defaultPendingMinMs: 0,
context: { client },
});

Expand Down

0 comments on commit c3b2d16

Please sign in to comment.