Skip to content

Commit

Permalink
cleanup unused pages router method (#67722)
Browse files Browse the repository at this point in the history
This appears to be leftover from early RSC experimentation.
  • Loading branch information
ztanner authored Jul 12, 2024
1 parent d654ccf commit 0e9479f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/next/src/shared/lib/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2501,18 +2501,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
Expand Down

0 comments on commit 0e9479f

Please sign in to comment.