react-router 6.28.2 → 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/CHANGELOG.md +9 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/react-router.development.js +2 -2
- package/dist/react-router.development.js.map +1 -1
- package/dist/react-router.production.min.js +2 -2
- package/dist/react-router.production.min.js.map +1 -1
- package/dist/umd/react-router.development.js +2 -2
- package/dist/umd/react-router.development.js.map +1 -1
- package/dist/umd/react-router.production.min.js +2 -2
- package/dist/umd/react-router.production.min.js.map +1 -1
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router v6.28.
|
|
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
|
{
|