react-router 6.21.0-pre.2 → 6.21.0

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,14 +1,6 @@
1
1
  # `react-router`
2
2
 
3
- ## 6.21.0-pre.2
4
-
5
- ## 6.21.0-pre.1
6
-
7
- ### Patch Changes
8
-
9
- - [REMOVE] Fix plumbing of future flags ([`558d7936`](https://github.com/remix-run/react-router/commit/558d7936cc8fe643374a2c9a9fdcf022e8c4c939))
10
-
11
- ## 6.21.0-pre.0
3
+ ## 6.21.0
12
4
 
13
5
  ### Minor Changes
14
6
 
@@ -147,7 +139,7 @@
147
139
 
148
140
  - Properly handle falsy error values in ErrorBoundary's ([#11071](https://github.com/remix-run/react-router/pull/11071))
149
141
  - Updated dependencies:
150
- - `@remix-run/router@1.14.0-pre.0`
142
+ - `@remix-run/router@1.14.0`
151
143
 
152
144
  ## 6.20.1
153
145
 
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
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