diff --git a/packages/next/src/shared/lib/router/router.ts b/packages/next/src/shared/lib/router/router.ts index 32aecea6655f34..3c388f6af14dd8 100644 --- a/packages/next/src/shared/lib/router/router.ts +++ b/packages/next/src/shared/lib/router/router.ts @@ -1989,6 +1989,11 @@ export default class Router implements BaseRouter { isBackground, } + console.log( + 'sho7uld we fetch here', + { isQueryUpdating, isMiddlewareRewrite, route }, + isQueryUpdating && !isMiddlewareRewrite + ) let data: | WithMiddlewareEffectsOutput | (Pick & @@ -2501,18 +2506,6 @@ export default class Router implements BaseRouter { }) } - _getFlightData(dataHref: string) { - // Do not cache RSC flight response since it's not a static resource - return fetchNextData({ - dataHref, - isServerRender: true, - parseJSON: false, - inflightCache: this.sdc, - persistCache: false, - isPrefetch: false, - }).then(({ text }) => ({ data: text })) - } - getInitialProps( Component: ComponentType, ctx: NextPageContext