react-router 6.30.3 → 6.30.4
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 +7 -0
- package/dist/index.js +8 -12
- package/dist/index.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/react-router.development.js +7 -7
- 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 +8 -12
- 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.30.
|
|
2
|
+
* React Router v6.30.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -454,12 +454,12 @@ class RenderErrorBoundary extends React.Component {
|
|
|
454
454
|
console.error("React Router caught the following error during render", error, errorInfo);
|
|
455
455
|
}
|
|
456
456
|
render() {
|
|
457
|
-
return this.state.error !== undefined ? /*#__PURE__*/React.createElement(RouteContext.Provider, {
|
|
457
|
+
return this.state.error !== undefined ? (/*#__PURE__*/React.createElement(RouteContext.Provider, {
|
|
458
458
|
value: this.props.routeContext
|
|
459
459
|
}, /*#__PURE__*/React.createElement(RouteErrorContext.Provider, {
|
|
460
460
|
value: this.state.error,
|
|
461
461
|
children: this.props.component
|
|
462
|
-
})) : this.props.children;
|
|
462
|
+
}))) : this.props.children;
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
function RenderedRoute({
|
|
@@ -591,7 +591,7 @@ function _renderMatches(matches, parentMatches = [], dataRouterState = null, fut
|
|
|
591
591
|
// Only wrap in an error boundary within data router usages when we have an
|
|
592
592
|
// ErrorBoundary/errorElement on this route. Otherwise let it bubble up to
|
|
593
593
|
// an ancestor ErrorBoundary/errorElement
|
|
594
|
-
return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /*#__PURE__*/React.createElement(RenderErrorBoundary, {
|
|
594
|
+
return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? (/*#__PURE__*/React.createElement(RenderErrorBoundary, {
|
|
595
595
|
location: dataRouterState.location,
|
|
596
596
|
revalidation: dataRouterState.revalidation,
|
|
597
597
|
component: errorElement,
|
|
@@ -602,7 +602,7 @@ function _renderMatches(matches, parentMatches = [], dataRouterState = null, fut
|
|
|
602
602
|
matches,
|
|
603
603
|
isDataRoute: true
|
|
604
604
|
}
|
|
605
|
-
}) : getChildren();
|
|
605
|
+
})) : getChildren();
|
|
606
606
|
}, null);
|
|
607
607
|
}
|
|
608
608
|
var DataRouterHook;
|
|
@@ -965,11 +965,11 @@ function RouterProvider({
|
|
|
965
965
|
future: {
|
|
966
966
|
v7_relativeSplatPath: router.future.v7_relativeSplatPath
|
|
967
967
|
}
|
|
968
|
-
}, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/React.createElement(DataRoutes, {
|
|
968
|
+
}, state.initialized || router.future.v7_partialHydration ? (/*#__PURE__*/React.createElement(DataRoutes, {
|
|
969
969
|
routes: router.routes,
|
|
970
970
|
future: router.future,
|
|
971
971
|
state: state
|
|
972
|
-
}) : fallbackElement))), null);
|
|
972
|
+
})) : fallbackElement))), null);
|
|
973
973
|
}
|
|
974
974
|
function DataRoutes({
|
|
975
975
|
routes,
|