@@ -18,7 +18,6 @@ import {
1818  REACT_MEMO_TYPE , 
1919  REACT_PORTAL_TYPE , 
2020  REACT_PROFILER_TYPE , 
21-   REACT_PROVIDER_TYPE , 
2221  REACT_CONSUMER_TYPE , 
2322  REACT_STRICT_MODE_TYPE , 
2423  REACT_SUSPENSE_TYPE , 
@@ -30,7 +29,6 @@ import {
3029}  from  'shared/ReactSymbols' ; 
3130
3231import  { 
33-   enableRenderableContext , 
3432  enableScopeAPI , 
3533  enableTransitionTracing , 
3634  enableLegacyHidden , 
@@ -64,14 +62,7 @@ export function typeOf(object: any): mixed {
6462              case  REACT_MEMO_TYPE :
6563                return  $$typeofType ; 
6664              case  REACT_CONSUMER_TYPE :
67-                 if  ( enableRenderableContext )  { 
68-                   return  $$typeofType ; 
69-                 } 
70-               // Fall through 
71-               case  REACT_PROVIDER_TYPE :
72-                 if  ( ! enableRenderableContext )  { 
73-                   return  $$typeofType ; 
74-                 } 
65+                 return  $$typeofType ; 
7566              // Fall through 
7667              default :
7768                return  $$typeof ; 
@@ -85,12 +76,8 @@ export function typeOf(object: any): mixed {
8576  return  undefined ; 
8677} 
8778
88- export  const  ContextConsumer : symbol  =  enableRenderableContext 
89-   ? REACT_CONSUMER_TYPE 
90-   : REACT_CONTEXT_TYPE ; 
91- export  const  ContextProvider : symbol  =  enableRenderableContext 
92-   ? REACT_CONTEXT_TYPE 
93-   : REACT_PROVIDER_TYPE ; 
79+ export  const  ContextConsumer : symbol  =  REACT_CONSUMER_TYPE ; 
80+ export  const  ContextProvider : symbol  =  REACT_CONTEXT_TYPE ; 
9481export  const  Element  =  REACT_ELEMENT_TYPE ; 
9582export  const  ForwardRef  =  REACT_FORWARD_REF_TYPE ; 
9683export  const  Fragment  =  REACT_FRAGMENT_TYPE ; 
@@ -127,8 +114,7 @@ export function isValidElementType(type: mixed): boolean {
127114      type . $$typeof  ===  REACT_LAZY_TYPE  || 
128115      type . $$typeof  ===  REACT_MEMO_TYPE  || 
129116      type . $$typeof  ===  REACT_CONTEXT_TYPE  || 
130-       ( ! enableRenderableContext  &&  type . $$typeof  ===  REACT_PROVIDER_TYPE )  || 
131-       ( enableRenderableContext  &&  type . $$typeof  ===  REACT_CONSUMER_TYPE )  || 
117+       type . $$typeof  ===  REACT_CONSUMER_TYPE  || 
132118      type . $$typeof  ===  REACT_FORWARD_REF_TYPE  || 
133119      // This needs to include all possible module reference object 
134120      // types supported by any Flight configuration anywhere since 
@@ -145,18 +131,10 @@ export function isValidElementType(type: mixed): boolean {
145131} 
146132
147133export  function  isContextConsumer ( object : any ) : boolean  { 
148-   if  ( enableRenderableContext )  { 
149-     return  typeOf ( object )  ===  REACT_CONSUMER_TYPE ; 
150-   }  else  { 
151-     return  typeOf ( object )  ===  REACT_CONTEXT_TYPE ; 
152-   } 
134+   return  typeOf ( object )  ===  REACT_CONSUMER_TYPE ; 
153135} 
154136export  function  isContextProvider ( object : any ) : boolean  { 
155-   if  ( enableRenderableContext )  { 
156-     return  typeOf ( object )  ===  REACT_CONTEXT_TYPE ; 
157-   }  else  { 
158-     return  typeOf ( object )  ===  REACT_PROVIDER_TYPE ; 
159-   } 
137+   return  typeOf ( object )  ===  REACT_CONTEXT_TYPE ; 
160138} 
161139export  function  isElement ( object : any ) : boolean  { 
162140  return  ( 
0 commit comments