From 3bee073c01ee7af48c4ad19d98837cabaace67dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Thu, 27 Jun 2024 18:08:56 +0200 Subject: [PATCH] Remove isPrimaryRenderer from Flight Server Config (#30115) This was used for Context but since ReactFlightNewContext is gone now this is no longer used. --- .../src/server/ReactFlightServerConfigDOM.js | 4 ---- .../react-server/src/forks/ReactFlightServerConfig.custom.js | 2 -- 2 files changed, 6 deletions(-) diff --git a/packages/react-dom-bindings/src/server/ReactFlightServerConfigDOM.js b/packages/react-dom-bindings/src/server/ReactFlightServerConfigDOM.js index 32905aa45b1fb..9cded881352af 100644 --- a/packages/react-dom-bindings/src/server/ReactFlightServerConfigDOM.js +++ b/packages/react-dom-bindings/src/server/ReactFlightServerConfigDOM.js @@ -20,10 +20,6 @@ import type { // but it does not have any exports import './ReactDOMFlightServerHostDispatcher'; -// Used to distinguish these contexts from ones used in other renderers. -// E.g. this can be used to distinguish legacy renderers from this modern one. -export const isPrimaryRenderer = true; - // We use zero to represent the absence of an explicit precedence because it is // small, smaller than how we encode undefined, and is unambiguous. We could use // a different tuple structure to encode this instead but this makes the runtime diff --git a/packages/react-server/src/forks/ReactFlightServerConfig.custom.js b/packages/react-server/src/forks/ReactFlightServerConfig.custom.js index 5afdf8c29c888..15874c64e0858 100644 --- a/packages/react-server/src/forks/ReactFlightServerConfig.custom.js +++ b/packages/react-server/src/forks/ReactFlightServerConfig.custom.js @@ -19,8 +19,6 @@ export type HintCode = any; // eslint-disable-next-line no-unused-vars export type HintModel = any; -export const isPrimaryRenderer = false; - export const supportsRequestStorage = false; export const requestStorage: AsyncLocalStorage = (null: any);