Skip to content

Commit d2c60e9

Browse files
committed
Remove unused internal fields
These were used by the old act implementation. No longer needed.
1 parent ac15f6c commit d2c60e9

9 files changed

+0
-39
lines changed

packages/react-dom/src/client/ReactDOM.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import {
2828
flushSync,
2929
flushControlled,
3030
injectIntoDevTools,
31-
IsThisRendererActing,
3231
attemptSynchronousHydration,
3332
attemptDiscreteHydration,
3433
attemptContinuousHydration,
@@ -164,8 +163,6 @@ const Internals = {
164163
restoreStateIfNeeded,
165164
batchedUpdates,
166165
],
167-
// TODO: Temporary. Only used by our internal version of `act. Will remove.
168-
IsThisRendererActing,
169166
};
170167

171168
export {

packages/react-reconciler/src/ReactFiberReconciler.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
flushControlled as flushControlled_old,
2727
flushSync as flushSync_old,
2828
flushPassiveEffects as flushPassiveEffects_old,
29-
IsThisRendererActing as IsThisRendererActing_old,
3029
getPublicRootInstance as getPublicRootInstance_old,
3130
attemptSynchronousHydration as attemptSynchronousHydration_old,
3231
attemptDiscreteHydration as attemptDiscreteHydration_old,
@@ -66,7 +65,6 @@ import {
6665
flushControlled as flushControlled_new,
6766
flushSync as flushSync_new,
6867
flushPassiveEffects as flushPassiveEffects_new,
69-
IsThisRendererActing as IsThisRendererActing_new,
7068
getPublicRootInstance as getPublicRootInstance_new,
7169
attemptSynchronousHydration as attemptSynchronousHydration_new,
7270
attemptDiscreteHydration as attemptDiscreteHydration_new,
@@ -125,9 +123,6 @@ export const flushSync = enableNewReconciler ? flushSync_new : flushSync_old;
125123
export const flushPassiveEffects = enableNewReconciler
126124
? flushPassiveEffects_new
127125
: flushPassiveEffects_old;
128-
export const IsThisRendererActing = enableNewReconciler
129-
? IsThisRendererActing_new
130-
: IsThisRendererActing_old;
131126
export const getPublicRootInstance = enableNewReconciler
132127
? getPublicRootInstance_new
133128
: getPublicRootInstance_old;

packages/react-reconciler/src/ReactFiberReconciler.new.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ import {
6060
discreteUpdates,
6161
flushDiscreteUpdates,
6262
flushPassiveEffects,
63-
IsThisRendererActing,
6463
} from './ReactFiberWorkLoop.new';
6564
import {
6665
createUpdate,
@@ -337,7 +336,6 @@ export {
337336
flushControlled,
338337
flushSync,
339338
flushPassiveEffects,
340-
IsThisRendererActing,
341339
};
342340

343341
export function getPublicRootInstance(

packages/react-reconciler/src/ReactFiberReconciler.old.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ import {
6060
discreteUpdates,
6161
flushDiscreteUpdates,
6262
flushPassiveEffects,
63-
IsThisRendererActing,
6463
} from './ReactFiberWorkLoop.old';
6564
import {
6665
createUpdate,
@@ -337,7 +336,6 @@ export {
337336
flushControlled,
338337
flushSync,
339338
flushPassiveEffects,
340-
IsThisRendererActing,
341339
};
342340

343341
export function getPublicRootInstance(

packages/react-reconciler/src/ReactFiberWorkLoop.new.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2767,9 +2767,6 @@ function warnAboutRenderPhaseUpdatesInDEV(fiber) {
27672767
}
27682768
}
27692769

2770-
// a 'shared' variable that changes when act() opens/closes in tests.
2771-
export const IsThisRendererActing = {current: (false: boolean)};
2772-
27732770
export function restorePendingUpdaters(root: FiberRoot, lanes: Lanes): void {
27742771
if (enableUpdaterTracking) {
27752772
if (isDevToolsPresent) {

packages/react-reconciler/src/ReactFiberWorkLoop.old.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2767,9 +2767,6 @@ function warnAboutRenderPhaseUpdatesInDEV(fiber) {
27672767
}
27682768
}
27692769

2770-
// a 'shared' variable that changes when act() opens/closes in tests.
2771-
export const IsThisRendererActing = {current: (false: boolean)};
2772-
27732770
export function restorePendingUpdaters(root: FiberRoot, lanes: Lanes): void {
27742771
if (enableUpdaterTracking) {
27752772
if (isDevToolsPresent) {

packages/react/src/IsSomeRendererActing.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

packages/react/src/ReactSharedInternals.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ import ReactCurrentBatchConfig from './ReactCurrentBatchConfig';
1111
import ReactCurrentActQueue from './ReactCurrentActQueue';
1212
import ReactCurrentOwner from './ReactCurrentOwner';
1313
import ReactDebugCurrentFrame from './ReactDebugCurrentFrame';
14-
import IsSomeRendererActing from './IsSomeRendererActing';
1514

1615
const ReactSharedInternals = {
1716
ReactCurrentDispatcher,
1817
ReactCurrentBatchConfig,
1918
ReactCurrentOwner,
20-
IsSomeRendererActing,
2119
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
2220
assign,
2321
};

packages/react/src/forks/ReactSharedInternals.umd.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ import * as Scheduler from 'scheduler';
1010
import ReactCurrentDispatcher from '../ReactCurrentDispatcher';
1111
import ReactCurrentOwner from '../ReactCurrentOwner';
1212
import ReactDebugCurrentFrame from '../ReactDebugCurrentFrame';
13-
import IsSomeRendererActing from '../IsSomeRendererActing';
1413
import ReactCurrentBatchConfig from '../ReactCurrentBatchConfig';
1514

1615
const ReactSharedInternals = {
1716
ReactCurrentDispatcher,
1817
ReactCurrentOwner,
19-
IsSomeRendererActing,
2018
ReactCurrentBatchConfig,
2119
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
2220
assign,

0 commit comments

Comments
 (0)