Skip to content
Source
Sign inSign up
TanStack/router

Initial load delay with `ssr: false` #5122

Send to my agent
ClosedDubzer(GitHub profile, opens in a new tab) opened this issue 4 comments

Which project does this relate to?

Start

Describe the bug

hii i see a delay on the initial load when disabling SSR for a single route on Tanstack Start. setting defaultPendingMinMs to 0 works as a workaround.

related (?) #1929

Your Example Website or App

Steps to Reproduce the Bug or Issue

  1. npx create-start-app@latest to create a project
  2. navigate to index.tsx, and set ssr: false in the route configuration
  3. pnpm run build && node .output/server/index.mjs
  4. observe how the contents of the index page render with a delay

sorry that i can't provide an example. for some reason, tanstack start template on codesandbox doesn't seem to work

Expected behavior

no delay

Screenshots or Videos

https://github.com/user-attachments/assets/77579f50-0470-4bcb-bebc-89b50352553e

Platform

  • Router / Start Version: ^1.131.7
  • OS: macOS
  • Browser: any
  • Bundler: vite
  • Bundler Version: ^6.3.5

Additional context

No response

  1. oh, i see. thanks! but is there really a point in displaying a pending component even when the loader is not configured?

  2. you could still want a server fallback to prevent layout shift

  3. encountered this quirk too, very counter-intuitive default 😭

Sign in to join this conversation.