perf(startup): split routes, defer background work and relax dev prebundle
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Enables TanStack Router automatic route code splitting, preloads routes on intent, skips random search suggestions and update checks during the first paint, registers the search hotkey once, and stops forcing a full Vite dependency re-optimization on every dev launch.
This commit is contained in:
1 parent
205b655d00
commit
6a1467e864
5 files changed
+34
-15
No files matched your search
+4
-2
@@ -46,8 +46,10 @@ const router = createRouter({
|
||||
fetchCurrentUser: undefined!,
|
||||
queryClient,
|
||||
},
|
||||
defaultPreload: false,
|
||||
defaultPreloadStaleTime: 0,
|
||||
// Preload route chunks/data when the user shows intent (hover/focus), so
|
||||
// navigation itself stays instant without paying for every route at boot.
|
||||
defaultPreload: "intent",
|
||||
defaultPreloadStaleTime: 30_000,
|
||||
// Only animate real page changes; search-param updates (typing in the
|
||||
// search field) must not trigger a transition on every keystroke.
|
||||
defaultViewTransition: {
|
||||
|
||||
Reference in new issue
Block a user