react-router 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 6.21.0-pre.2
4
12
 
5
13
  ## 6.21.0-pre.1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router v6.21.0-pre.2
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