Skip to content

Commit dd0619b

Browse files
authored
rename $$$hostConfig to $$$config (#26593)
We have moved away from HostConfig since the name does not fully describe the configs we customize per runtime like FlightClient, FlightServer, Fizz, and Fiber. This commit generalizes $$$hostconfig to $$$config
1 parent b55d319 commit dd0619b

File tree

6 files changed

+196
-203
lines changed

6 files changed

+196
-203
lines changed

packages/react-client/src/forks/ReactFlightClientConfig.custom.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,27 @@
2323
// So `$$$config` looks like a global variable, but it's
2424
// really an argument to a top-level wrapping function.
2525

26-
declare var $$$hostConfig: any;
26+
declare var $$$config: any;
2727

2828
export type Response = any;
2929
export opaque type SSRManifest = mixed;
3030
export opaque type ServerManifest = mixed;
3131
export opaque type ServerReferenceId = string;
3232
export opaque type ClientReferenceMetadata = mixed;
3333
export opaque type ClientReference<T> = mixed; // eslint-disable-line no-unused-vars
34-
export const resolveClientReference = $$$hostConfig.resolveClientReference;
35-
export const resolveServerReference = $$$hostConfig.resolveServerReference;
36-
export const preloadModule = $$$hostConfig.preloadModule;
37-
export const requireModule = $$$hostConfig.requireModule;
34+
export const resolveClientReference = $$$config.resolveClientReference;
35+
export const resolveServerReference = $$$config.resolveServerReference;
36+
export const preloadModule = $$$config.preloadModule;
37+
export const requireModule = $$$config.requireModule;
3838

3939
export opaque type Source = mixed;
4040

4141
export type UninitializedModel = string;
42-
export const parseModel = $$$hostConfig.parseModel;
42+
export const parseModel = $$$config.parseModel;
4343

4444
export opaque type StringDecoder = mixed; // eslint-disable-line no-undef
4545

46-
export const supportsBinaryStreams = $$$hostConfig.supportsBinaryStreams;
47-
export const createStringDecoder = $$$hostConfig.createStringDecoder;
48-
export const readPartialStringChunk = $$$hostConfig.readPartialStringChunk;
49-
export const readFinalStringChunk = $$$hostConfig.readFinalStringChunk;
46+
export const supportsBinaryStreams = $$$config.supportsBinaryStreams;
47+
export const createStringDecoder = $$$config.createStringDecoder;
48+
export const readPartialStringChunk = $$$config.readPartialStringChunk;
49+
export const readFinalStringChunk = $$$config.readFinalStringChunk;

0 commit comments

Comments
 (0)