From 9ffe9102ffd08ca7a56c60aa6952208890d213ce Mon Sep 17 00:00:00 2001 From: bubucuo Date: Thu, 14 Mar 2024 22:04:44 +0800 Subject: [PATCH] Fix a spelling mistake. (#28555) --- packages/react-reconciler/src/ReactChildFiber.js | 10 +++++----- packages/react-reconciler/src/ReactFiberNewContext.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/react-reconciler/src/ReactChildFiber.js b/packages/react-reconciler/src/ReactChildFiber.js index e06371e67b81c..956af89af076f 100644 --- a/packages/react-reconciler/src/ReactChildFiber.js +++ b/packages/react-reconciler/src/ReactChildFiber.js @@ -58,7 +58,7 @@ import {isCompatibleFamilyForHotReloading} from './ReactFiberHotReloading'; import {getIsHydrating} from './ReactFiberHydrationContext'; import {pushTreeFork} from './ReactFiberTreeContext'; import {createThenableState, trackUsedThenable} from './ReactFiberThenable'; -import {readContextDuringReconcilation} from './ReactFiberNewContext'; +import {readContextDuringReconciliation} from './ReactFiberNewContext'; // This tracks the thenables that are unwrapped during reconcilation. let thenableState: ThenableState | null = null; @@ -746,7 +746,7 @@ function createChildReconciler( const context: ReactContext = (newChild: any); return createChild( returnFiber, - readContextDuringReconcilation(returnFiber, context, lanes), + readContextDuringReconciliation(returnFiber, context, lanes), lanes, debugInfo, ); @@ -873,7 +873,7 @@ function createChildReconciler( return updateSlot( returnFiber, oldFiber, - readContextDuringReconcilation(returnFiber, context, lanes), + readContextDuringReconciliation(returnFiber, context, lanes), lanes, debugInfo, ); @@ -994,7 +994,7 @@ function createChildReconciler( existingChildren, returnFiber, newIdx, - readContextDuringReconcilation(returnFiber, context, lanes), + readContextDuringReconciliation(returnFiber, context, lanes), lanes, debugInfo, ); @@ -1710,7 +1710,7 @@ function createChildReconciler( return reconcileChildFibersImpl( returnFiber, currentFirstChild, - readContextDuringReconcilation(returnFiber, context, lanes), + readContextDuringReconciliation(returnFiber, context, lanes), lanes, debugInfo, ); diff --git a/packages/react-reconciler/src/ReactFiberNewContext.js b/packages/react-reconciler/src/ReactFiberNewContext.js index 5d9b165635a1e..cb9ada3dee9b8 100644 --- a/packages/react-reconciler/src/ReactFiberNewContext.js +++ b/packages/react-reconciler/src/ReactFiberNewContext.js @@ -715,7 +715,7 @@ export function readContext(context: ReactContext): T { return readContextForConsumer(currentlyRenderingFiber, context); } -export function readContextDuringReconcilation( +export function readContextDuringReconciliation( consumer: Fiber, context: ReactContext, renderLanes: Lanes,