mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Added explicit null return to completeUnitOfWork() to resolve Flow error (#9299)
This commit is contained in:
@@ -684,6 +684,10 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Without this explicit null return Flow complains of invalid return type
|
||||
// TODO Remove the above while(true) loop
|
||||
return null;
|
||||
}
|
||||
|
||||
function performUnitOfWork(workInProgress: Fiber): Fiber | null {
|
||||
|
||||
Reference in New Issue
Block a user