@@ -449,7 +449,7 @@ export function renderWithHooks<Props, SecondArg>(
449
449
}
450
450
451
451
// We can assume the previous dispatcher is always this one, since we set it
452
- // at the beginning of the render phase and there's no re-entrancy .
452
+ // at the beginning of the render phase and there's no re-entrance .
453
453
ReactCurrentDispatcher . current = ContextOnlyDispatcher ;
454
454
455
455
if ( __DEV__ ) {
@@ -553,7 +553,7 @@ export function bailoutHooks(
553
553
554
554
export function resetHooksAfterThrow ( ) : void {
555
555
// We can assume the previous dispatcher is always this one, since we set it
556
- // at the beginning of the render phase and there's no re-entrancy .
556
+ // at the beginning of the render phase and there's no re-entrance .
557
557
ReactCurrentDispatcher . current = ContextOnlyDispatcher ;
558
558
559
559
if ( didScheduleRenderPhaseUpdate ) {
@@ -934,7 +934,7 @@ type MutableSourceMemoizedState<Source, Snapshot> = {|
934
934
subscribe : MutableSourceSubscribeFn < Source , Snapshot> ,
935
935
| } ;
936
936
937
- function readFromUnsubcribedMutableSource < Source , Snapshot > (
937
+ function readFromUnsubscribedMutableSource < Source , Snapshot > (
938
938
root : FiberRoot ,
939
939
source : MutableSource < Source > ,
940
940
getSnapshot : MutableSourceGetSnapshotFn < Source , Snapshot > ,
@@ -1074,7 +1074,7 @@ function useMutableSource<Source, Snapshot>(
1074
1074
1075
1075
// eslint-disable-next-line prefer-const
1076
1076
let [ currentSnapshot , setSnapshot ] = dispatcher . useState ( ( ) =>
1077
- readFromUnsubcribedMutableSource ( root , source , getSnapshot ) ,
1077
+ readFromUnsubscribedMutableSource ( root , source , getSnapshot ) ,
1078
1078
) ;
1079
1079
let snapshot = currentSnapshot ;
1080
1080
@@ -1208,7 +1208,7 @@ function useMutableSource<Source, Snapshot>(
1208
1208
) : any ) ;
1209
1209
stateHook . queue = newQueue ;
1210
1210
stateHook . baseQueue = null ;
1211
- snapshot = readFromUnsubcribedMutableSource ( root , source , getSnapshot ) ;
1211
+ snapshot = readFromUnsubscribedMutableSource ( root , source , getSnapshot ) ;
1212
1212
stateHook . memoizedState = stateHook . baseState = snapshot ;
1213
1213
}
1214
1214
@@ -1949,7 +1949,7 @@ function dispatchAction<S, A>(
1949
1949
// This is the first update. Create a circular list.
1950
1950
update . next = update ;
1951
1951
// At the end of the current render, this queue's interleaved updates will
1952
- // be transfered to the pending queue.
1952
+ // be transferred to the pending queue.
1953
1953
pushInterleavedQueue ( queue ) ;
1954
1954
} else {
1955
1955
update . next = interleaved . next ;
0 commit comments