You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 returnsnotFound()
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
/notFound
page./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
Additional context
No response
The text was updated successfully, but these errors were encountered: