react-router 6.28.3-pre-v6.0 → 6.29.0-pre-v6.2
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 +19 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/react-router.development.js +4 -3
- 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 +4 -3
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# `react-router`
|
|
2
2
|
|
|
3
|
+
## 6.29.0-pre-v6.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Provide the request `signal` as a parameter to `patchRoutesOnNavigation` ([#12900](https://github.com/remix-run/react-router/pull/12900))
|
|
8
|
+
|
|
9
|
+
- This can be used to abort any manifest fetches if the in-flight navigation/fetcher is aborted
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies:
|
|
14
|
+
- `@remix-run/router@1.22.0-pre-v6.1`
|
|
15
|
+
|
|
16
|
+
## 6.28.3-pre-v6.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Limit matchRoutes optimization to client side routers ([#12881](https://github.com/remix-run/react-router/pull/12881))
|
|
21
|
+
|
|
3
22
|
## 6.28.3-pre-v6.0
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router v6.
|
|
2
|
+
* React Router v6.29.0-pre-v6.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -327,7 +327,8 @@ function useRoutesImpl(routes, locationArg, dataRouterState, future) {
|
|
|
327
327
|
// router loaded. We can help them understand how to avoid that.
|
|
328
328
|
"useRoutes() may be used only in the context of a <Router> component.") : UNSAFE_invariant(false) : void 0;
|
|
329
329
|
let {
|
|
330
|
-
navigator
|
|
330
|
+
navigator,
|
|
331
|
+
static: isStatic
|
|
331
332
|
} = React.useContext(NavigationContext);
|
|
332
333
|
let {
|
|
333
334
|
matches: parentMatches
|
|
@@ -392,7 +393,7 @@ function useRoutesImpl(routes, locationArg, dataRouterState, future) {
|
|
|
392
393
|
let segments = pathname.replace(/^\//, "").split("/");
|
|
393
394
|
remainingPathname = "/" + segments.slice(parentSegments.length).join("/");
|
|
394
395
|
}
|
|
395
|
-
let matches = dataRouterState && dataRouterState.matches && dataRouterState.matches.length > 0 ? dataRouterState.matches : matchRoutes(routes, {
|
|
396
|
+
let matches = !isStatic && dataRouterState && dataRouterState.matches && dataRouterState.matches.length > 0 ? dataRouterState.matches : matchRoutes(routes, {
|
|
396
397
|
pathname: remainingPathname
|
|
397
398
|
});
|
|
398
399
|
if (process.env.NODE_ENV !== "production") {
|