@@ -71,9 +71,6 @@ if (__DEV__) {
7171 var warnedAboutStatelessRefs = { } ;
7272}
7373
74- const internalErrorMessage =
75- 'This error is likely caused by a bug in React. Please file an issue.' ;
76-
7774module . exports = function < T , P , I , TI , PI , C , CX , PL > (
7875 config : HostConfig < T , P , I , TI , PI , C , CX , PL > ,
7976 hostContext : HostContext < C , CX > ,
@@ -347,8 +344,8 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(
347344 nextProps = memoizedProps ;
348345 invariant (
349346 nextProps !== null ,
350- 'We should always have pending or current props. (%s)' ,
351- internalErrorMessage
347+ 'We should always have pending or current props. This error is ' +
348+ 'likely caused by a bug in React. Please file an issue.'
352349 ) ;
353350 }
354351 } else if ( nextProps === null || memoizedProps === nextProps ) {
@@ -450,8 +447,8 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(
450447 function mountIndeterminateComponent ( current , workInProgress , priorityLevel ) {
451448 invariant (
452449 current === null ,
453- 'An indeterminate component should never have mounted. (%s)' ,
454- internalErrorMessage
450+ 'An indeterminate component should never have mounted. This error is ' +
451+ 'likely caused by a bug in React. Please file an issue.'
455452 ) ;
456453 var fn = workInProgress . type ;
457454 var props = workInProgress . pendingProps ;
@@ -521,8 +518,8 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(
521518 nextCoroutine = current && current . memoizedProps ;
522519 invariant (
523520 nextCoroutine != null ,
524- 'We should always have pending or current props. (%s)' ,
525- internalErrorMessage
521+ 'We should always have pending or current props. This error is ' +
522+ 'likely caused by a bug in React. Please file an issue.'
526523 ) ;
527524 }
528525 } else if ( nextCoroutine === null || workInProgress . memoizedProps === nextCoroutine ) {
@@ -587,8 +584,8 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(
587584 nextChildren = current && current . memoizedProps ;
588585 invariant (
589586 nextChildren != null ,
590- 'We should always have pending or current props. (%s)' ,
591- internalErrorMessage
587+ 'We should always have pending or current props. This error is ' +
588+ 'likely caused by a bug in React. Please file an issue.'
592589 ) ;
593590 }
594591 } else if ( nextChildren === null || workInProgress . memoizedProps === nextChildren ) {
@@ -741,8 +738,8 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(
741738 default :
742739 invariant (
743740 false ,
744- 'Unknown unit of work tag. (%s)' ,
745- internalErrorMessage
741+ 'Unknown unit of work tag. This error is likely caused by a bug in ' +
742+ 'React. Please file an issue.'
746743 ) ;
747744 }
748745 }
@@ -751,8 +748,8 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(
751748 invariant (
752749 workInProgress . tag === ClassComponent ||
753750 workInProgress . tag === HostRoot ,
754- 'Invalid type of work. (%s)' ,
755- internalErrorMessage
751+ 'Invalid type of work. This error is likely caused by a bug in React. ' +
752+ 'Please file an issue.'
756753 ) ;
757754
758755 // Add an error effect so we can handle the error during the commit phase
0 commit comments