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/dist/main.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
  *
@@ -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
  *
@@ -851,7 +851,7 @@ function RouterProvider({
851
851
  // pick up on any render-driven redirects/navigations (useEffect/<Navigate>)
852
852
  React.useLayoutEffect(() => router.subscribe(setState), [router, setState]);
853
853
  React.useEffect(() => {
854
- UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`") ;
854
+ UNSAFE_warning(fallbackElement == null || !router.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using " + "`v7_partialHydration`, use a `HydrateFallback` component instead") ;
855
855
  // Only log this once on initial mount
856
856
  // eslint-disable-next-line react-hooks/exhaustive-deps
857
857
  }, []);
@@ -896,7 +896,7 @@ function RouterProvider({
896
896
  future: {
897
897
  v7_relativeSplatPath: router.future.v7_relativeSplatPath
898
898
  }
899
- }, state.initialized ? /*#__PURE__*/React.createElement(DataRoutes, {
899
+ }, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/React.createElement(DataRoutes, {
900
900
  routes: router.routes,
901
901
  future: router.future,
902
902
  state: state