@samitouri / QOS-React-2 / commits / f50f9ba5db

Fix ReactFiberNewContext spelling (#15692)

Maksim Markelov committed May 22, 2019 at 13:24 UTC f50f9ba5db4fd08693ad9d592bfe6f9ab1b5cdbf
2 files changed +2 -3
packages/react-reconciler/src/ReactFiberNewContext.js
+1 -1
@@ -59,7 +59,7 @@ let lastContextWithAllBitsObserved: ReactContext<any> | null = null;
59
60 let isDisallowedContextReadInDEV: boolean = false;
61
62 -export function resetContextDependences(): void {
62 +export function resetContextDependencies(): void {
63 // This is called right before React yields execution, to ensure `readContext`
64 // cannot be called outside the render phase.
65 currentlyRenderingFiber = null;
packages/react-reconciler/src/ReactFiberScheduler.js
+1 -2
@@ -123,8 +123,7 @@ import {
123 commitResetTextContent,
124 } from './ReactFiberCommitWork';
125 import {enqueueUpdate} from './ReactUpdateQueue';
126 -// TODO: Ahaha Andrew is bad at spellling
127 -import {resetContextDependences as resetContextDependencies} from './ReactFiberNewContext';
126 +import {resetContextDependencies} from './ReactFiberNewContext';
127 import {resetHooks, ContextOnlyDispatcher} from './ReactFiberHooks';
128 import {createCapturedValue} from './ReactCapturedValue';
129