mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Fix wrong Flow return type
This commit is contained in:
1 parent
5031ebf6be
commit
2b30828000
1 file changed
+1
-1
+1
-1
@@ -294,7 +294,7 @@ function shouldConstruct(Component: Function) {
|
||||
export function resolveLazyComponentTag(
|
||||
fiber: Fiber,
|
||||
Component: Function,
|
||||
): void {
|
||||
): TypeOfWork {
|
||||
if (typeof Component === 'function') {
|
||||
return shouldConstruct(Component)
|
||||
? ClassComponentLazy
|
||||
|
||||
Reference in new issue
Block a user