File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,9 @@ export {
340340 useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery ,
341341} from "./lib/dom/ssr/fog-of-war" ;
342342
343+ /** @internal */
344+ export { getHydrationData as UNSAFE_getHydrationData } from "./lib/dom/ssr/hydration" ;
345+
343346/** @internal */
344347export type { RouteModules as UNSAFE_RouteModules } from "./lib/dom/ssr/routeModules" ;
345348
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import type {
88 RouterInit ,
99} from "react-router" ;
1010import {
11+ UNSAFE_getHydrationData as getHydrationData ,
1112 UNSAFE_invariant as invariant ,
1213 UNSAFE_FrameworkContext as FrameworkContext ,
1314 UNSAFE_decodeViaTurboStream as decodeViaTurboStream ,
@@ -18,14 +19,11 @@ import {
1819 UNSAFE_deserializeErrors as deserializeErrors ,
1920 UNSAFE_getTurboStreamSingleFetchDataStrategy as getTurboStreamSingleFetchDataStrategy ,
2021 UNSAFE_getPatchRoutesOnNavigationFunction as getPatchRoutesOnNavigationFunction ,
21- UNSAFE_shouldHydrateRouteLoader as shouldHydrateRouteLoader ,
2222 UNSAFE_useFogOFWarDiscovery as useFogOFWarDiscovery ,
2323 UNSAFE_mapRouteProperties as mapRouteProperties ,
2424 UNSAFE_hydrationRouteProperties as hydrationRouteProperties ,
2525 UNSAFE_createClientRoutesWithHMRRevalidationOptOut as createClientRoutesWithHMRRevalidationOptOut ,
26- matchRoutes ,
2726} from "react-router" ;
28- import { getHydrationData } from "../dom/ssr/hydration" ;
2927import { RouterProvider } from "./dom-router-provider" ;
3028
3129type SSRInfo = {
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ export function getTurboStreamSingleFetchDataStrategy(
168168 ssr : boolean ,
169169 basename : string | undefined
170170) : DataStrategyFunction {
171- let dataStrategy = getTurboStreamSingleFetchDataStrategyImpl (
171+ let dataStrategy = getSingleFetchDataStrategyImpl (
172172 getRouter ,
173173 ( match : DataRouteMatch ) => {
174174 let manifestRoute = manifest . routes [ match . route . id ] ;
@@ -187,7 +187,7 @@ export function getTurboStreamSingleFetchDataStrategy(
187187 return async ( args ) => args . unstable_runClientMiddleware ( dataStrategy ) ;
188188}
189189
190- export function getTurboStreamSingleFetchDataStrategyImpl (
190+ export function getSingleFetchDataStrategyImpl (
191191 getRouter : ( ) => DataRouter ,
192192 getRouteInfo : GetRouteInfoFunction ,
193193 fetchAndDecode : FetchAndDecodeFunction ,
You can’t perform that action at this time.
0 commit comments