Skip to content

Commit 65680ba

Browse files
authored
Rename createRSCHook to createFlightHook (#35665)
Updates the naming of these to be in line with what it does. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
1 parent ab119bc commit 65680ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/next/server/render.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function checkRedirectValues(
307307

308308
const rscCache = new Map()
309309

310-
function createRSCHook() {
310+
function createFlightHook() {
311311
return (
312312
writable: WritableStream<Uint8Array>,
313313
id: string,
@@ -356,7 +356,7 @@ function createRSCHook() {
356356
}
357357
}
358358

359-
const useRSCResponse = createRSCHook()
359+
const useFlightResponse = createFlightHook()
360360

361361
// Create the wrapper component for a Flight stream.
362362
function createServerComponentRenderer(
@@ -386,7 +386,7 @@ function createServerComponentRenderer(
386386
serverComponentManifest
387387
)
388388

389-
const response = useRSCResponse(
389+
const response = useFlightResponse(
390390
writable,
391391
cachePrefix + ',' + id,
392392
reqStream,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy