react-router 6.28.2-pre.0 → 6.28.3-pre-v6.0

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/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router v6.28.2-pre.0
2
+ * React Router v6.28.3-pre-v6.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router v6.28.2-pre.0
2
+ * React Router v6.28.3-pre-v6.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -343,7 +343,7 @@ function useRoutesImpl(routes, locationArg, dataRouterState, future) {
343
343
  let segments = pathname.replace(/^\//, "").split("/");
344
344
  remainingPathname = "/" + segments.slice(parentSegments.length).join("/");
345
345
  }
346
- let matches = matchRoutes(routes, {
346
+ let matches = dataRouterState && dataRouterState.matches && dataRouterState.matches.length > 0 ? dataRouterState.matches : matchRoutes(routes, {
347
347
  pathname: remainingPathname
348
348
  });
349
349
  {