@samitouri / QOS-React-2 / commits / 3bee073c01

Remove isPrimaryRenderer from Flight Server Config (#30115)

This was used for Context but since ReactFlightNewContext is gone now this is no longer used.

Sebastian Markbåge committed Jun 27, 2024 at 18:08 UTC 3bee073c01ee7af48c4ad19d98837cabaace67dc
2 files changed -6
packages/react-dom-bindings/src/server/ReactFlightServerConfigDOM.js
-4
@@ -20,10 +20,6 @@ import type {
20 // but it does not have any exports
21 import './ReactDOMFlightServerHostDispatcher';
22
23 -// Used to distinguish these contexts from ones used in other renderers.
24 -// E.g. this can be used to distinguish legacy renderers from this modern one.
25 -export const isPrimaryRenderer = true;
26 -
23 // We use zero to represent the absence of an explicit precedence because it is
24 // small, smaller than how we encode undefined, and is unambiguous. We could use
25 // a different tuple structure to encode this instead but this makes the runtime
packages/react-server/src/forks/ReactFlightServerConfig.custom.js
-2
@@ -19,8 +19,6 @@ export type HintCode = any;
19 // eslint-disable-next-line no-unused-vars
20 export type HintModel<T: any> = any;
21
22 -export const isPrimaryRenderer = false;
23 -
22 export const supportsRequestStorage = false;
23 export const requestStorage: AsyncLocalStorage<Request | void> = (null: any);
24