react-router-dom-v5-compat 6.21.0-pre.2 → 6.21.0-pre.3
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 +8 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/umd/react-router-dom-v5-compat.development.js +3 -3
- package/dist/umd/react-router-dom-v5-compat.development.js.map +1 -1
- package/dist/umd/react-router-dom-v5-compat.production.min.js +2 -2
- package/dist/umd/react-router-dom-v5-compat.production.min.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router DOM v5 Compat v6.21.0-pre.
|
|
2
|
+
* React Router DOM v5 Compat v6.21.0-pre.3
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -524,7 +524,7 @@ function RouterProvider(_ref) {
|
|
|
524
524
|
}
|
|
525
525
|
}, [vtContext.isTransitioning, interruption]);
|
|
526
526
|
React.useEffect(() => {
|
|
527
|
-
process.env.NODE_ENV !== "production" ? UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`") : void 0;
|
|
527
|
+
process.env.NODE_ENV !== "production" ? UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using " + "`v7_partialHydration`, use a `HydrateFallback` component instead") : void 0;
|
|
528
528
|
// Only log this once on initial mount
|
|
529
529
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
530
530
|
}, []);
|
|
@@ -573,7 +573,7 @@ function RouterProvider(_ref) {
|
|
|
573
573
|
future: {
|
|
574
574
|
v7_relativeSplatPath: router.future.v7_relativeSplatPath
|
|
575
575
|
}
|
|
576
|
-
}, state.initialized ? /*#__PURE__*/React.createElement(DataRoutes, {
|
|
576
|
+
}, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/React.createElement(DataRoutes, {
|
|
577
577
|
routes: router.routes,
|
|
578
578
|
future: router.future,
|
|
579
579
|
state: state
|