-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed
Labels
Description
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 the prefetch attribute set to viewport
System Info
System:
OS: macOS 15.1.1
CPU: (10) arm64 Apple M1 Pro
Memory: 127.64 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.8.1 - ~/.nvm/versions/node/v20.9.0/bin/npm
pnpm: 9.14.4 - /opt/homebrew/bin/pnpm
Watchman: 2024.11.25.00 - /opt/homebrew/bin/watchman
Browsers:
Chrome: 131.0.6778.86
Safari: 18.1.1
npmPackages:
@react-router/dev: ^7.0.0 => 7.0.1
@react-router/fs-routes: ^7.0.1 => 7.0.1
@react-router/node: ^7.0.1 => 7.0.1
react-router: ^7.0.0 => 7.0.1
vite: ^5.4.11 => 5.4.11Used Package Manager
npm
Expected Behavior
No warning
Actual Behavior
Warning shows up that a route was not matched.