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

Preloaders affecting current route #1576

Open
CamBurris opened this issue May 9, 2024 · 1 comment
Open

Preloaders affecting current route #1576

CamBurris opened this issue May 9, 2024 · 1 comment
Labels
information needed Further information is requested

Comments

@CamBurris
Copy link

Describe the bug

Preloading of routes seems to be affecting the currently rendered route. In the codesandbox, there are two routes under an _auth layout route. The _auth.tsx conditionally returns notFound() for the /notFound route and otherwise renders the route.

When you first load the /notFound route, the not found component is rendered as expected. When you hover over the link to /test, you will see the component for the /notFound route is rendered instead of the not found component.

Your Example Website or App

https://codesandbox.io/p/devbox/preload-d7l47f?file=%2Fsrc%2Froutes%2F_auth.tsx%3A9%2C3

Steps to Reproduce the Bug or Issue

  1. Go to /notFound page.
  2. Should see the not found component being rendered as expected.
  3. Hover over the Test route link in the header.
  4. You will see the component for /notFound is rendered instead of the not found component.

Expected behavior

Preloading other routes should not affect the current route.

Screenshots or Videos

No response

Platform

  • OS: macos
  • Browser: Chrome
  • Version: 124

Additional context

No response

@schiller-manuel
Copy link
Contributor

do you know which version introduced this issue?

@SeanCassiere SeanCassiere added the information needed Further information is requested label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
information needed Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants