Skip to content

Commit

Permalink
BatchedRoot -> BlockingRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Nov 10, 2019
1 parent d815d77 commit 900a54f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/react-dom/src/client/ReactDOMRoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions packages/react-noop-renderer/src/createReactNoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -952,7 +952,7 @@ function createReactNoop(reconciler: Function, useMutation: boolean) {
};
const fiberRoot = NoopRenderer.createContainer(
container,
BatchedRoot,
BlockingRoot,
false,
null,
);
Expand Down
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiber.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/ReactRootTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 900a54f

Please sign in to comment.