Skip to content

Commit 64e0a03

Browse files
authored
Remove false positive link prefetch warning (#12485)
1 parent 5213a95 commit 64e0a03

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changeset/serious-chairs-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-router": patch
3+
---
4+
5+
Remove `<Link prefetch>` warning which suffers from false positives in a lazy route discovery world

packages/react-router/lib/dom/ssr/components.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ export function PrefetchPageLinks({
279279
);
280280

281281
if (!matches) {
282-
console.warn(`Tried to prefetch ${page} but no routes matched.`);
283282
return null;
284283
}
285284

0 commit comments

Comments
 (0)