mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix ReactFiberNewContext spelling (#15692)
This commit is contained in:
committed by
Dan Abramov
parent
e180f656f3
commit
f50f9ba5db
+1
-1
@@ -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
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user