Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename createRSCHook to createFlightHook #35665

Merged
merged 2 commits into from Mar 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/next/server/render.tsx
Expand Up @@ -307,7 +307,7 @@ function checkRedirectValues(

const rscCache = new Map()

function createRSCHook() {
function createFlightHook() {
return (
writable: WritableStream<Uint8Array>,
id: string,
Expand Down Expand Up @@ -356,7 +356,7 @@ function createRSCHook() {
}
}

const useRSCResponse = createRSCHook()
const useFlightResponse = createFlightHook()

// Create the wrapper component for a Flight stream.
function createServerComponentRenderer(
Expand Down Expand Up @@ -386,7 +386,7 @@ function createServerComponentRenderer(
serverComponentManifest
)

const response = useRSCResponse(
const response = useFlightResponse(
writable,
cachePrefix + ',' + id,
reqStream,
Expand Down