Fix ReactFiberNewContext spelling (#15692)

This commit is contained in:
Maksim Markelov
2019-05-22 11:24:31 +01:00
committed by Dan Abramov
parent e180f656f3
commit f50f9ba5db
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ let lastContextWithAllBitsObserved: ReactContext<any> | null = null;
let isDisallowedContextReadInDEV: boolean = false;
export function resetContextDependences(): void {
export function resetContextDependencies(): void {
// This is called right before React yields execution, to ensure `readContext`
// cannot be called outside the render phase.
currentlyRenderingFiber = null;
+1 -2
View File
@@ -123,8 +123,7 @@ import {
commitResetTextContent,
} from './ReactFiberCommitWork';
import {enqueueUpdate} from './ReactUpdateQueue';
// TODO: Ahaha Andrew is bad at spellling
import {resetContextDependences as resetContextDependencies} from './ReactFiberNewContext';
import {resetContextDependencies} from './ReactFiberNewContext';
import {resetHooks, ContextOnlyDispatcher} from './ReactFiberHooks';
import {createCapturedValue} from './ReactCapturedValue';