Skip to content

Commit

Permalink
Add React.Timeout to getComponentName (facebook#12890)
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 authored and gaearon committed May 23, 2018
1 parent 3df1574 commit fe747a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/shared/getComponentName.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
REACT_PROFILER_TYPE,
REACT_PROVIDER_TYPE,
REACT_STRICT_MODE_TYPE,
REACT_TIMEOUT_TYPE,
} from 'shared/ReactSymbols';

function getComponentName(fiber: Fiber): string | null {
Expand All @@ -43,6 +44,8 @@ function getComponentName(fiber: Fiber): string | null {
return 'Context.Provider';
case REACT_STRICT_MODE_TYPE:
return 'StrictMode';
case REACT_TIMEOUT_TYPE:
return 'Timeout';
}
if (typeof type === 'object' && type !== null) {
switch (type.$$typeof) {
Expand Down

0 comments on commit fe747a5

Please sign in to comment.