File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,9 @@ export {
340
340
useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery ,
341
341
} from "./lib/dom/ssr/fog-of-war" ;
342
342
343
+ /** @internal */
344
+ export { getHydrationData as UNSAFE_getHydrationData } from "./lib/dom/ssr/hydration" ;
345
+
343
346
/** @internal */
344
347
export type { RouteModules as UNSAFE_RouteModules } from "./lib/dom/ssr/routeModules" ;
345
348
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import type {
8
8
RouterInit ,
9
9
} from "react-router" ;
10
10
import {
11
+ UNSAFE_getHydrationData as getHydrationData ,
11
12
UNSAFE_invariant as invariant ,
12
13
UNSAFE_FrameworkContext as FrameworkContext ,
13
14
UNSAFE_decodeViaTurboStream as decodeViaTurboStream ,
@@ -18,14 +19,11 @@ import {
18
19
UNSAFE_deserializeErrors as deserializeErrors ,
19
20
UNSAFE_getTurboStreamSingleFetchDataStrategy as getTurboStreamSingleFetchDataStrategy ,
20
21
UNSAFE_getPatchRoutesOnNavigationFunction as getPatchRoutesOnNavigationFunction ,
21
- UNSAFE_shouldHydrateRouteLoader as shouldHydrateRouteLoader ,
22
22
UNSAFE_useFogOFWarDiscovery as useFogOFWarDiscovery ,
23
23
UNSAFE_mapRouteProperties as mapRouteProperties ,
24
24
UNSAFE_hydrationRouteProperties as hydrationRouteProperties ,
25
25
UNSAFE_createClientRoutesWithHMRRevalidationOptOut as createClientRoutesWithHMRRevalidationOptOut ,
26
- matchRoutes ,
27
26
} from "react-router" ;
28
- import { getHydrationData } from "../dom/ssr/hydration" ;
29
27
import { RouterProvider } from "./dom-router-provider" ;
30
28
31
29
type SSRInfo = {
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ export function getTurboStreamSingleFetchDataStrategy(
168
168
ssr : boolean ,
169
169
basename : string | undefined
170
170
) : DataStrategyFunction {
171
- let dataStrategy = getTurboStreamSingleFetchDataStrategyImpl (
171
+ let dataStrategy = getSingleFetchDataStrategyImpl (
172
172
getRouter ,
173
173
( match : DataRouteMatch ) => {
174
174
let manifestRoute = manifest . routes [ match . route . id ] ;
@@ -187,7 +187,7 @@ export function getTurboStreamSingleFetchDataStrategy(
187
187
return async ( args ) => args . unstable_runClientMiddleware ( dataStrategy ) ;
188
188
}
189
189
190
- export function getTurboStreamSingleFetchDataStrategyImpl (
190
+ export function getSingleFetchDataStrategyImpl (
191
191
getRouter : ( ) => DataRouter ,
192
192
getRouteInfo : GetRouteInfoFunction ,
193
193
fetchAndDecode : FetchAndDecodeFunction ,
You can’t perform that action at this time.
0 commit comments