Skip to content

Commit 122598c

Browse files
committed
fix HDR
1 parent 56506bd commit 122598c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-router/lib/dom/ssr/single-fetch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ async function singleFetchLoaderNavigationStrategy(
346346
// `undefined` result because we always have a `loader` on the client
347347
// route in framework mode (for loading module/styles) so this ensures
348348
// it doesn't think it's waiting for data and trigger `HydrateFallback`
349-
if (!hasLoader && !hasClientLoader) {
349+
if (!hasLoader && !hasClientLoader && !window.__reactRouterHdrActive) {
350350
results[routeId] = { type: "data", result: undefined };
351351
return;
352352
}

0 commit comments

Comments
 (0)