()
| 13919 | } |
| 13920 | |
| 13921 | function warnOnFunctionType() { |
| 13922 | var currentComponentErrorInfo = '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.' + getCurrentFiberStackInDev(); |
| 13923 | |
| 13924 | if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) { |
| 13925 | return; |
| 13926 | } |
| 13927 | ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true; |
| 13928 | |
| 13929 | warning$1(false, '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.'); |
| 13930 | } |
| 13931 | |
| 13932 | // This wrapper function exists because I expect to clone the code in each path |
| 13933 | // to be able to optimize each path individually by branching early. This needs |
no test coverage detected