Skip to content
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

On Page refresh, router goes to pending state and doesn't resolve even after refresh is completed #3853

Open
amanmavai opened this issue Mar 25, 2025 · 0 comments

Comments

@amanmavai
Copy link

amanmavai commented Mar 25, 2025

Which project does this relate to?

Router

Describe the bug

If we have the beforeLoad present and it returns any data. I am using the pending status of the router in the component. On page refresh the component remains in pending even after the page has refreshed

Your Example Website or App

https://stackblitz.com/edit/tanstack-router-2kfgh9h7?file=src%2Froutes%2F__root.tsx

Steps to Reproduce the Bug or Issue

  1. go to about route
  2. refresh the page
  3. check the pending status of the router state

router state with status==="pending" doesn't change to idle. expected is when after the page is refreshed the status should change to idle

Expected behavior

expected is when the page is refreshed the status should change to idle

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: "1.114.27"

Additional context

No response

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

No branches or pull requests

1 participant