Skip to content

Commit 785f6f6

Browse files
authored
Prevent invalid warning for v7_relativeSplatPath (#13502)
1 parent f552e92 commit 785f6f6

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.changeset/purple-gifts-bake.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+
Stop logging invalid warning when `v7_relativeSplatPath` is set to false

build.utils.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export declare function createBanner(packageName: string, version: string): string;

packages/react-router/lib/deprecations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function logV6DeprecationWarnings(
3232

3333
if (
3434
renderFuture?.v7_relativeSplatPath === undefined &&
35-
(!routerFuture || !routerFuture.v7_relativeSplatPath)
35+
(!routerFuture || routerFuture.v7_relativeSplatPath === undefined)
3636
) {
3737
logDeprecation(
3838
"v7_relativeSplatPath",

0 commit comments

Comments
 (0)