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

vinxi/routes page reload behavior on first hover preloading link #3279

Open
jellekuipers opened this issue Jan 30, 2025 · 0 comments
Open

vinxi/routes page reload behavior on first hover preloading link #3279

jellekuipers opened this issue Jan 30, 2025 · 0 comments

Comments

@jellekuipers
Copy link

jellekuipers commented Jan 30, 2025

Which project does this relate to?

Start

Describe the bug

In the start-basic example, after starting the development server, the first time you hover the Users link in the navbar, logs are showing the following:

2:25:33 PM [vite] (ssr) page reload vinxi/routes
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x2)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x3)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x4)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x5)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x6)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x7)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x8)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x9)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x10)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x11)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x12)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x13)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x14)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x15)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x16)
2:25:33 PM [vite] (ssr) page reload vinxi/routes (x17)
Fetching users... @ http://localhost:3000/api/users

As mentioned, this only happens once after starting/restarting the development server, and I'm wondering whether this is desired behavior and/or if this might influence performance or functionality.

The preloading of Posts happens without the reloading.

If any additional information is needed, please let me know. Thanks in advance!

Your Example Website or App

https://github.com/TanStack/router/tree/main/examples/react/start-basic

Steps to Reproduce the Bug or Issue

  1. npm run dev the start-basic example and go to http://localhost:3000/
  2. In the navbar, hover Users
  3. See vinxi/routes reloading the page 17x.

Expected behavior

To either not see the page being refreshed 17 times, or perhaps only once depending on intended behavior.

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Firefox
  • Version: 134.0.2

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