From fe747a51c1fdedd87c4e9e281441f2d8d04e02b3 Mon Sep 17 00:00:00 2001 From: Toru Kobayashi Date: Thu, 24 May 2018 02:39:20 +0900 Subject: [PATCH] Add React.Timeout to getComponentName (#12890) --- packages/shared/getComponentName.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/shared/getComponentName.js b/packages/shared/getComponentName.js index b79a2d1c9bfa8..ac4f872d445a5 100644 --- a/packages/shared/getComponentName.js +++ b/packages/shared/getComponentName.js @@ -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 { @@ -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) {