(returnFiber)
| 14898 | } |
| 14899 | |
| 14900 | function warnOnFunctionType(returnFiber) { |
| 14901 | { |
| 14902 | var componentName = getComponentNameFromFiber(returnFiber) || 'Component'; |
| 14903 | |
| 14904 | if (ownerHasFunctionTypeWarning[componentName]) { |
| 14905 | return; |
| 14906 | } |
| 14907 | |
| 14908 | ownerHasFunctionTypeWarning[componentName] = true; |
| 14909 | |
| 14910 | error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.'); |
| 14911 | } |
| 14912 | } |
| 14913 | |
| 14914 | function resolveLazy(lazyType) { |
| 14915 | var payload = lazyType._payload; |
no test coverage detected
searching dependent graphs…