react-router 6.21.0-pre.1 → 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 +10 -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 +3 -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 +3 -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 +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# `react-router`
|
|
2
2
|
|
|
3
|
+
## 6.21.0-pre.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [REMOVE] Refactor internals for partial hydration ([#11094](https://github.com/remix-run/react-router/pull/11094))
|
|
8
|
+
- Updated dependencies:
|
|
9
|
+
- `@remix-run/router@1.14.0-pre.1`
|
|
10
|
+
|
|
11
|
+
## 6.21.0-pre.2
|
|
12
|
+
|
|
3
13
|
## 6.21.0-pre.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router v6.21.0-pre.
|
|
2
|
+
* React Router v6.21.0-pre.3
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -940,7 +940,7 @@ function RouterProvider(_ref) {
|
|
|
940
940
|
// pick up on any render-driven redirects/navigations (useEffect/<Navigate>)
|
|
941
941
|
React.useLayoutEffect(() => router.subscribe(setState), [router, setState]);
|
|
942
942
|
React.useEffect(() => {
|
|
943
|
-
process.env.NODE_ENV !== "production" ? UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`") : void 0;
|
|
943
|
+
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;
|
|
944
944
|
// Only log this once on initial mount
|
|
945
945
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
946
946
|
}, []);
|
|
@@ -986,7 +986,7 @@ function RouterProvider(_ref) {
|
|
|
986
986
|
future: {
|
|
987
987
|
v7_relativeSplatPath: router.future.v7_relativeSplatPath
|
|
988
988
|
}
|
|
989
|
-
}, state.initialized ? /*#__PURE__*/React.createElement(DataRoutes, {
|
|
989
|
+
}, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/React.createElement(DataRoutes, {
|
|
990
990
|
routes: router.routes,
|
|
991
991
|
future: router.future,
|
|
992
992
|
state: state
|