Skip to content

pendingComponent is not shown in Start #4033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ammarmbe opened this issue Apr 23, 2025 · 1 comment
Closed

pendingComponent is not shown in Start #4033

ammarmbe opened this issue Apr 23, 2025 · 1 comment
Labels
start Everything about TanStack Start

Comments

@ammarmbe
Copy link

Which project does this relate to?

Start

Describe the bug

The pendingComponent is not displayed when the route is in a pending state (through the loader method)

Your Example Website or App

https://github.com/ammarmbe/tanstack-start-pending-component

Steps to Reproduce the Bug or Issue

  1. clone the repo
  2. run npm install
  3. run npm run dev

Expected behavior

The pendingComponent is expected to be displayed in the "/" route for 2 seconds (the duration of the awaited promise in loader), however, the browser is in a pending state and the first response from the server is after the loader has finished

Screenshots or Videos

No response

Platform

  • OS: Windows 11 build 22631.5189
  • Browser: Chrome version 135.0.7049.96
  • Version: 1.114.3

Additional context

deployed at https://tanstack-start-pending-component.vercel.app/

@SeanCassiere SeanCassiere added the start Everything about TanStack Start label Apr 23, 2025
@schiller-manuel
Copy link
Contributor

this is working as expected. the loader will block the server response. if you dont want this, use deferred loading or even better, stream the data using useSuspenseQuery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
start Everything about TanStack Start
Projects
None yet
Development

No branches or pull requests

3 participants