@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/react-router",
3
3
  "author": "Tanner Linsley",
4
- "version": "0.0.1-beta.36",
4
+ "version": "0.0.1-beta.37",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
7
  "homepage": "https://tanstack.com/router/",
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,