mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Simplify imports in react reconciler (#13718)
* Simplify imports in ReactChildFiber * Import type first in ReactCurrentFiber * Simplify imports in ReactFiberBeginWork * Simplify imports in ReactFiberScheduler * Simplify import in ReactFiberTreeReflection * Simplify import in ReactFiberUnwindWork * Remove repeated import * Fix imports from ReactFiberExpirationTime * Master imports in ReactFiberBeginWork
This commit is contained in:
committed by
Nathan Hunzaker
parent
cdbfa6b5dd
commit
d5d10d140e
+2
-2
@@ -9,8 +9,8 @@
|
||||
|
||||
import type {ReactElement} from 'shared/ReactElementType';
|
||||
import type {ReactPortal} from 'shared/ReactTypes';
|
||||
import type {Fiber} from 'react-reconciler/src/ReactFiber';
|
||||
import type {ExpirationTime} from 'react-reconciler/src/ReactFiberExpirationTime';
|
||||
import type {Fiber} from './ReactFiber';
|
||||
import type {ExpirationTime} from './ReactFiberExpirationTime';
|
||||
|
||||
import getComponentName from 'shared/getComponentName';
|
||||
import {Placement, Deletion} from 'shared/ReactSideEffectTags';
|
||||
|
||||
+2
-2
@@ -7,6 +7,8 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import type {Fiber} from './ReactFiber';
|
||||
|
||||
import ReactSharedInternals from 'shared/ReactSharedInternals';
|
||||
import {
|
||||
IndeterminateComponent,
|
||||
@@ -21,8 +23,6 @@ import getComponentName from 'shared/getComponentName';
|
||||
|
||||
const ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||
|
||||
import type {Fiber} from './ReactFiber';
|
||||
|
||||
type LifeCyclePhase = 'render' | 'getChildContext';
|
||||
|
||||
function describeFiber(fiber: Fiber): string {
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
import type {ReactProviderType, ReactContext} from 'shared/ReactTypes';
|
||||
import type {Fiber} from 'react-reconciler/src/ReactFiber';
|
||||
import type {Fiber} from './ReactFiber';
|
||||
import type {FiberRoot} from './ReactFiberRoot';
|
||||
import type {ExpirationTime} from './ReactFiberExpirationTime';
|
||||
import type {SuspenseState} from './ReactFiberSuspenseComponent';
|
||||
|
||||
@@ -78,6 +78,9 @@ import {
|
||||
noTimeout,
|
||||
prepareForCommit,
|
||||
resetAfterCommit,
|
||||
scheduleTimeout,
|
||||
cancelTimeout,
|
||||
noTimeout,
|
||||
} from './ReactFiberHostConfig';
|
||||
import {
|
||||
markPendingPriorityLevel,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import type {Fiber} from 'react-reconciler/src/ReactFiber';
|
||||
import type {Fiber} from './ReactFiber';
|
||||
|
||||
import invariant from 'shared/invariant';
|
||||
import warningWithoutStack from 'shared/warningWithoutStack';
|
||||
|
||||
+2
-1
@@ -61,11 +61,12 @@ import {
|
||||
isAlreadyFailedLegacyErrorBoundary,
|
||||
retrySuspendedRoot,
|
||||
} from './ReactFiberScheduler';
|
||||
import {NoWork, Sync} from './ReactFiberExpirationTime';
|
||||
|
||||
import invariant from 'shared/invariant';
|
||||
import maxSigned31BitInt from './maxSigned31BitInt';
|
||||
import {
|
||||
NoWork,
|
||||
Sync,
|
||||
expirationTimeToMs,
|
||||
LOW_PRIORITY_EXPIRATION,
|
||||
} from './ReactFiberExpirationTime';
|
||||
|
||||
Reference in New Issue
Block a user