From 61836fba2a5446c25aa223d2a8b3939cc90c6d03 Mon Sep 17 00:00:00 2001 From: Heaven Date: Fri, 6 Sep 2019 22:47:35 +0800 Subject: [PATCH] Fix typo: wnless -> unless (#16680) --- packages/react-reconciler/src/ReactFiberWorkLoop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.js b/packages/react-reconciler/src/ReactFiberWorkLoop.js index 9d9dad28a41aa..dad5c82eeb106 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.js @@ -406,7 +406,7 @@ export function scheduleUpdateOnFiber( } else { scheduleCallbackForRoot(root, ImmediatePriority, Sync); if (executionContext === NoContext) { - // Flush the synchronous work now, wnless we're already working or inside + // Flush the synchronous work now, unless we're already working or inside // a batch. This is intentionally inside scheduleUpdateOnFiber instead of // scheduleCallbackForFiber to preserve the ability to schedule a callback // without immediately flushing it. We only do this for user-initiated