diff --git a/packages/react-dom/src/client/ReactDOMRoot.js b/packages/react-dom/src/client/ReactDOMRoot.js index 157f7444a61fc..0edc6a36723d5 100644 --- a/packages/react-dom/src/client/ReactDOMRoot.js +++ b/packages/react-dom/src/client/ReactDOMRoot.js @@ -45,7 +45,7 @@ import { import {createContainer, updateContainer} from 'react-reconciler/inline.dom'; import invariant from 'shared/invariant'; import warningWithoutStack from 'shared/warningWithoutStack'; -import {BatchedRoot, ConcurrentRoot, LegacyRoot} from 'shared/ReactRootTags'; +import {BlockingRoot, ConcurrentRoot, LegacyRoot} from 'shared/ReactRootTags'; function ReactDOMRoot(container: DOMContainer, options: void | RootOptions) { this._internalRoot = createRootImpl(container, ConcurrentRoot, options); @@ -130,7 +130,7 @@ export function createBlockingRoot( 'createRoot(...): Target container is not a DOM element.', ); warnIfReactDOMContainerInDEV(container); - return new ReactDOMBlockingRoot(container, BatchedRoot, options); + return new ReactDOMBlockingRoot(container, BlockingRoot, options); } export function createLegacyRoot( diff --git a/packages/react-noop-renderer/src/createReactNoop.js b/packages/react-noop-renderer/src/createReactNoop.js index 225d6e969573d..24a368056c0ad 100644 --- a/packages/react-noop-renderer/src/createReactNoop.js +++ b/packages/react-noop-renderer/src/createReactNoop.js @@ -26,7 +26,7 @@ import {REACT_FRAGMENT_TYPE, REACT_ELEMENT_TYPE} from 'shared/ReactSymbols'; import enqueueTask from 'shared/enqueueTask'; import ReactSharedInternals from 'shared/ReactSharedInternals'; import warningWithoutStack from 'shared/warningWithoutStack'; -import {ConcurrentRoot, BatchedRoot, LegacyRoot} from 'shared/ReactRootTags'; +import {ConcurrentRoot, BlockingRoot, LegacyRoot} from 'shared/ReactRootTags'; type Container = { rootID: string, @@ -952,7 +952,7 @@ function createReactNoop(reconciler: Function, useMutation: boolean) { }; const fiberRoot = NoopRenderer.createContainer( container, - BatchedRoot, + BlockingRoot, false, null, ); diff --git a/packages/react-reconciler/src/ReactFiber.js b/packages/react-reconciler/src/ReactFiber.js index 4264fb7088a9a..3d83a94100779 100644 --- a/packages/react-reconciler/src/ReactFiber.js +++ b/packages/react-reconciler/src/ReactFiber.js @@ -36,7 +36,7 @@ import { enableScopeAPI, } from 'shared/ReactFeatureFlags'; import {NoEffect, Placement} from 'shared/ReactSideEffectTags'; -import {ConcurrentRoot, BatchedRoot} from 'shared/ReactRootTags'; +import {ConcurrentRoot, BlockingRoot} from 'shared/ReactRootTags'; import { IndeterminateComponent, ClassComponent, @@ -574,7 +574,7 @@ export function createHostRootFiber(tag: RootTag): Fiber { let mode; if (tag === ConcurrentRoot) { mode = ConcurrentMode | BlockingMode | StrictMode; - } else if (tag === BatchedRoot) { + } else if (tag === BlockingRoot) { mode = BlockingMode | StrictMode; } else { mode = NoMode; diff --git a/packages/shared/ReactRootTags.js b/packages/shared/ReactRootTags.js index 44784b928ddd3..409f4bd931a76 100644 --- a/packages/shared/ReactRootTags.js +++ b/packages/shared/ReactRootTags.js @@ -10,5 +10,5 @@ export type RootTag = 0 | 1 | 2; export const LegacyRoot = 0; -export const BatchedRoot = 1; +export const BlockingRoot = 1; export const ConcurrentRoot = 2;