Unverified Commit 65680ba3 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

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`
parent ab119bcc
...@@ -307,7 +307,7 @@ function checkRedirectValues( ...@@ -307,7 +307,7 @@ function checkRedirectValues(
const rscCache = new Map() const rscCache = new Map()
function createRSCHook() { function createFlightHook() {
return ( return (
writable: WritableStream<Uint8Array>, writable: WritableStream<Uint8Array>,
id: string, id: string,
...@@ -356,7 +356,7 @@ function createRSCHook() { ...@@ -356,7 +356,7 @@ function createRSCHook() {
} }
} }
const useRSCResponse = createRSCHook() const useFlightResponse = createFlightHook()
// Create the wrapper component for a Flight stream. // Create the wrapper component for a Flight stream.
function createServerComponentRenderer( function createServerComponentRenderer(
...@@ -386,7 +386,7 @@ function createServerComponentRenderer( ...@@ -386,7 +386,7 @@ function createServerComponentRenderer(
serverComponentManifest serverComponentManifest
) )
const response = useRSCResponse( const response = useFlightResponse(
writable, writable,
cachePrefix + ',' + id, cachePrefix + ',' + id,
reqStream, reqStream,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment