GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Float] Refactor public interface and internal HostDispatcher impleme… · hanzoai/react@ae689a2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • react-client/src
      • ReactFlightClient.js
    • react-dom-bindings/src
      • client
        • ReactFiberConfigDOM.js
      • server
        • ReactDOMFlightServerHostDispatcher.js
        • ReactFizzConfigDOM.js
        • ReactFlightServerConfigDOM.js
      • shared
        • ReactDOMResourceValidation.js
        • ReactFlightClientConfigDOM.js
    • react-dom/src
      • __tests__
        • ReactDOMFloat-test.js
        • react-dom-server-rendering-stub-test.js
      • shared
        • ReactDOMFloat.js
        • ReactDOMTypes.js
    • react-server-dom-webpack/src/__tests__
      • ReactFlightDOM-test.js
      • ReactFlightDOMBrowser-test.js
    • react-server/src
      • ReactFlightServer.js
      • forks
        • ReactFlightServerConfig.custom.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-client/src/ReactFlightClient.js‎

Copy file name to clipboardExpand all lines: packages/react-client/src/ReactFlightClient.js
+8-5Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ import type {
1717
StringDecoder,
1818
} from './ReactFlightClientConfig';
1919

20-
import type {HintModel} from 'react-server/src/ReactFlightServerConfig';
20+
import type {
21+
HintCode,
22+
HintModel,
23+
} from 'react-server/src/ReactFlightServerConfig';
2124

2225
import type {CallServerCallback} from './ReactFlightReplyClient';
2326

@@ -915,12 +918,12 @@ function resolvePostponeDev(
915918
}
916919
}
917920

918-
function resolveHint(
921+
function resolveHint<Code: HintCode>(
919922
response: Response,
920-
code: string,
923+
code: Code,
921924
model: UninitializedModel,
922925
): void {
923-
const hintModel: HintModel = parseModel(response, model);
926+
const hintModel: HintModel<Code> = parseModel(response, model);
924927
dispatchHint(code, hintModel);
925928
}
926929

@@ -1044,7 +1047,7 @@ function processFullRow(
10441047
return;
10451048
}
10461049
case 72 /* "H" */: {
1047-
const code = row[0];
1050+
const code: HintCode = (row[0]: any);
10481051
resolveHint(response, code, row.slice(1));
10491052
return;
10501053
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.