-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
RR 7 can't prefetch link with intent set to viewport #12439
Comments
This same thing started happening to me in remix after enabling lazy route discovery, disabling that solves the problem |
Oh interesting, how do you disable it? |
In remix there's future flags that can be switched on or off in the vite config, (according to the docs all these things are going to be default in RR v7 though)
|
Ah gotcha, I was hoping I could disable it in RR 7. |
You can't disable it in RR7, the purpose of future flags is to allow you to opt into things that will be default behavior in the next version. This does seem weird though, assigning it to @brophdawg11 to take a look |
This warning is correct and something we may want to suppress, but the prefetching is working correctly in this example 🙂 With the lazy discovery we don't have routes immediately, so on the first render of At the same time, when that Upon updating of the client side route tree, the So, the warning is accurate, albeit a bit confusing in a lazy route discovery world. We probably just want to remove the warning now that lazy discovery is the default but need to think a bit more to ensure that doesn't suppress valid instances of the warning. |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
I'm using React Router as a...
framework
Reproduction
Open https://stackblitz.com/edit/prefetch-viewport-bug?file=app%2Froutes%2Fhome.tsx
Check console logs for this warning:
Tried to prefetch /slideshows/test/play but no routes matched.
This only happens when the
<Link>
has theprefetch
attribute set toviewport
System Info
Used Package Manager
npm
Expected Behavior
No warning
Actual Behavior
Warning shows up that a route was not matched.
The text was updated successfully, but these errors were encountered: