We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bacb29 commit d480569Copy full SHA for d480569
packages/react-router/src/index.tsx
@@ -391,15 +391,15 @@ export function createReactRouter<
391
392
invariant(
393
runtimeMatch.routeId == match?.routeId,
394
- `useMatch('${
+ `useMatch("${
395
match?.routeId as string
396
- }') is being called in a component that is meant to render the '${
+ }") is being called in a component that is meant to render the '${
397
runtimeMatch.routeId
398
- }' route. Did you mean to 'useMatch(${
+ }' route. Did you mean to 'useMatch("${
399
400
- }, { strict: false })' or 'useRoute(${
+ }", { strict: false })' or 'useRoute("${
401
402
- })' instead?`,
+ }")' instead?`,
403
)
404
}
405
0 commit comments