We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eadc804 commit 3963006Copy full SHA for 3963006
packages/react-router/lib/hooks.tsx
@@ -479,7 +479,7 @@ export function useRoutesImpl(
479
let parentPath = (parentRoute && parentRoute.path) || "";
480
warningOnce(
481
parentPathname,
482
- !parentRoute || parentPath.endsWith("*"),
+ !parentRoute || parentPath.endsWith("*") || parentPath.endsWith("*?"),
483
`You rendered descendant <Routes> (or called \`useRoutes()\`) at ` +
484
`"${parentPathname}" (under <Route path="${parentPath}">) but the ` +
485
`parent route path has no trailing "*". This means if you navigate ` +
0 commit comments