Skip to content

Commit 3bee073

Browse files
authored
Remove isPrimaryRenderer from Flight Server Config (#30115)
This was used for Context but since ReactFlightNewContext is gone now this is no longer used.
1 parent f5a22fa commit 3bee073

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

packages/react-dom-bindings/src/server/ReactFlightServerConfigDOM.js

-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ import type {
2020
// but it does not have any exports
2121
import './ReactDOMFlightServerHostDispatcher';
2222

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-
2723
// We use zero to represent the absence of an explicit precedence because it is
2824
// small, smaller than how we encode undefined, and is unambiguous. We could use
2925
// a different tuple structure to encode this instead but this makes the runtime

packages/react-server/src/forks/ReactFlightServerConfig.custom.js

-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export type HintCode = any;
1919
// eslint-disable-next-line no-unused-vars
2020
export type HintModel<T: any> = any;
2121

22-
export const isPrimaryRenderer = false;
23-
2422
export const supportsRequestStorage = false;
2523
export const requestStorage: AsyncLocalStorage<Request | void> = (null: any);
2624

0 commit comments

Comments
 (0)