@tanstack/react-router 0.0.1-beta.36 → 0.0.1-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +0 -1
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +0 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +48 -48
- package/build/umd/index.development.js +0 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +0 -5
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -424,11 +424,6 @@ export function createReactRouter<
|
|
|
424
424
|
useMatch: (routeId, opts) => {
|
|
425
425
|
useRouterSubscription(router)
|
|
426
426
|
|
|
427
|
-
invariant(
|
|
428
|
-
routeId !== rootRouteId,
|
|
429
|
-
`"${rootRouteId}" cannot be used with useMatch! Did you mean to useRoute("${rootRouteId}")?`,
|
|
430
|
-
)
|
|
431
|
-
|
|
432
427
|
const nearestMatch = useNearestMatch()
|
|
433
428
|
const match = router.state.currentMatches.find(
|
|
434
429
|
(d) => d.routeId === routeId,
|