Skip to content

Commit 5117201

Browse files
eps1lonkassensclaude
authored
[lts-active] Avoid loading standalone React in server bootstrap (#100610)
Backports #100467 and #100401 to `releases/lts/active`. #100401 defers React loading in `dedupe-fetch.ts`; it builds on #100467, which separates render validation from dynamic tracking and moves the fetch-patch marker into a standalone module so server bootstrap imports cannot reach React. Backported together since the goal of #100401 is only achieved with the #100467 groundwork. --------- Co-authored-by: Jan Kassens <kassens@vercel.com> Co-authored-by: Claude Code <noreply@anthropic.com>
1 parent 37d603b commit 5117201

8 files changed

Lines changed: 1184 additions & 1189 deletions

File tree

‎packages/next/src/server/app-render/app-render.tsx‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,14 @@ import {
180180
formatDynamicAPIAccesses,
181181
isPrerenderInterruptedError,
182182
createDynamicTrackingState,
183+
consumeDynamicAccess,
184+
type DynamicAccess,
185+
} from './dynamic-rendering'
186+
import {
183187
createDynamicValidationState,
184188
trackAllowedDynamicAccess,
185189
throwIfDisallowedDynamic,
186190
PreludeState,
187-
consumeDynamicAccess,
188-
type DynamicAccess,
189191
logDisallowedDynamicError,
190192
trackDynamicHoleInStaticShell,
191193
getStaticShellDisallowedDynamicReasons,
@@ -200,7 +202,7 @@ import {
200202
throwIfDisallowedDynamicInStaticRoute,
201203
getDisallowedReasonsInStaticRoute,
202204
type InstantValidationHoleKind,
203-
} from './dynamic-rendering'
205+
} from './dynamic-rendering-validation'
204206
import { logBuildDebugHint } from './blocking-route-messages'
205207
import {
206208
ClientComponentLoadTracker,

0 commit comments

Comments
 (0)