Fix typo: wnless -> unless (#16680)

This commit is contained in:
Heaven
2019-09-06 07:47:35 -07:00
committed by Brian Vaughn
parent e11bf42cea
commit 61836fba2a
+1 -1
View File
@@ -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