Fix wrong Flow return type
Andrew Clark committed
Aug 16, 2018 at 09:29 UTC
2b30828000a58eaf6adfc3ba2cbedd4bff4d077b
1 file changed
+1
-1
packages/react-reconciler/src/ReactFiber.js
+1
-1
@@ -294,7 +294,7 @@ function shouldConstruct(Component: Function) {
294
export function resolveLazyComponentTag(
295
fiber: Fiber,
296
Component: Function,
297
-): void {
297
+): TypeOfWork {
298
if (typeof Component === 'function') {
299
return shouldConstruct(Component)
300
? ClassComponentLazy