Skip to content

Commit 575c8a7

Browse files
authored
remove unused RSC payload property (#85746)
This property is from back when we forked client router handling based off the presence of the `postponed` payload, but it's no longer being read by anything, so this PR removes it.
1 parent c54ec25 commit 575c8a7

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

packages/next/src/client/flight-data-helpers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ export function createInitialRSCPayloadFromFallbackPrerender(
118118
],
119119
m: fallbackInitialRSCPayload.m,
120120
G: fallbackInitialRSCPayload.G,
121-
s: fallbackInitialRSCPayload.s,
122121
S: fallbackInitialRSCPayload.S,
123122
}
124123
}

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,6 @@ async function getRSCPayload(
13331333
],
13341334
m: missingSlots,
13351335
G: [GlobalError, globalErrorStyles],
1336-
s: typeof ctx.renderOpts.postponed === 'string',
13371336
S: workStore.isStaticGeneration,
13381337
}
13391338
}
@@ -1458,7 +1457,6 @@ async function getErrorRSCPayload(
14581457
] as FlightDataPath,
14591458
],
14601459
G: [GlobalError, globalErrorStyles],
1461-
s: typeof ctx.renderOpts.postponed === 'string',
14621460
S: workStore.isStaticGeneration,
14631461
} satisfies InitialRSCPayload
14641462
}

packages/next/src/shared/lib/app-router-types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,6 @@ export type InitialRSCPayload = {
288288
m: Set<string> | undefined
289289
/** GlobalError */
290290
G: [React.ComponentType<any>, React.ReactNode | undefined]
291-
/** postponed */
292-
s: boolean
293291
/** prerendered */
294292
S: boolean
295293
}

0 commit comments

Comments
 (0)