Skip to content

Commit f50f9ba

Browse files
mmarkelovgaearon
authored andcommitted
Fix ReactFiberNewContext spelling (#15692)
1 parent e180f65 commit f50f9ba

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

packages/react-reconciler/src/ReactFiberNewContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ let lastContextWithAllBitsObserved: ReactContext<any> | null = null;
5959

6060
let isDisallowedContextReadInDEV: boolean = false;
6161

62-
export function resetContextDependences(): void {
62+
export function resetContextDependencies(): void {
6363
// This is called right before React yields execution, to ensure `readContext`
6464
// cannot be called outside the render phase.
6565
currentlyRenderingFiber = null;

packages/react-reconciler/src/ReactFiberScheduler.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ import {
123123
commitResetTextContent,
124124
} from './ReactFiberCommitWork';
125125
import {enqueueUpdate} from './ReactUpdateQueue';
126-
// TODO: Ahaha Andrew is bad at spellling
127-
import {resetContextDependences as resetContextDependencies} from './ReactFiberNewContext';
126+
import {resetContextDependencies} from './ReactFiberNewContext';
128127
import {resetHooks, ContextOnlyDispatcher} from './ReactFiberHooks';
129128
import {createCapturedValue} from './ReactCapturedValue';
130129

0 commit comments

Comments
 (0)