File tree Expand file tree Collapse file tree 5 files changed +1
-29
lines changed
packages/react-devtools-shared/src/backend Expand file tree Collapse file tree 5 files changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ import type {LazyComponent} from 'react/src/ReactLazy';
1717import type { CurrentDispatcherRef } from './types' ;
1818
1919import {
20- BLOCK_NUMBER ,
21- BLOCK_SYMBOL_STRING ,
2220 FORWARD_REF_NUMBER ,
2321 FORWARD_REF_SYMBOL_STRING ,
2422 LAZY_NUMBER ,
@@ -276,14 +274,6 @@ export function describeUnknownElementTypeFrameInDEV(
276274 ownerFn ,
277275 currentDispatcherRef ,
278276 ) ;
279- case BLOCK_NUMBER :
280- case BLOCK_SYMBOL_STRING :
281- return describeFunctionComponentFrame (
282- type . _render ,
283- source ,
284- ownerFn ,
285- currentDispatcherRef ,
286- ) ;
287277 case LAZY_NUMBER :
288278 case LAZY_SYMBOL_STRING : {
289279 const lazyComponent : LazyComponent < any , any > = ( type : any ) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ function describeFiber(
3535 IndeterminateComponent,
3636 SimpleMemoComponent,
3737 ForwardRef,
38- Block,
3938 ClassComponent,
4039 } = workTagMap ;
4140
@@ -70,13 +69,6 @@ function describeFiber(
7069 owner ,
7170 currentDispatcherRef ,
7271 ) ;
73- case Block :
74- return describeFunctionComponentFrame (
75- workInProgress . type . _render ,
76- source ,
77- owner ,
78- currentDispatcherRef ,
79- ) ;
8072 case ClassComponent :
8173 return describeClassComponentFrame (
8274 workInProgress . type ,
Original file line number Diff line number Diff line change 1313// 2. DevTools must support both Symbol and numeric forms of each symbol;
1414// Since e.g. standalone DevTools runs in a separate process, it can't rely on its own ES capabilities.
1515
16- export const BLOCK_NUMBER = 0xead9 ;
17- export const BLOCK_SYMBOL_STRING = 'Symbol(react.block)' ;
18-
1916export const CONCURRENT_MODE_NUMBER = 0xeacf ;
2017export const CONCURRENT_MODE_SYMBOL_STRING = 'Symbol(react.concurrent_mode)' ;
2118
@@ -61,9 +58,6 @@ export const PROVIDER_SYMBOL_STRING = 'Symbol(react.provider)';
6158export const SCOPE_NUMBER = 0xead7 ;
6259export const SCOPE_SYMBOL_STRING = 'Symbol(react.scope)' ;
6360
64- export const SERVER_BLOCK_NUMBER = 0xeada ;
65- export const SERVER_BLOCK_SYMBOL_STRING = 'Symbol(react.server.block)' ;
66-
6761export const STRICT_MODE_NUMBER = 0xeacc ;
6862export const STRICT_MODE_SYMBOL_STRING = 'Symbol(react.strict_mode)' ;
6963
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ export function getInternalReactConstants(
188188 LazyComponent : 16 ,
189189 MemoComponent : 14 ,
190190 Mode : 8 ,
191- OffscreenComponent : 23 , // Experimental
191+ OffscreenComponent : 22 , // Experimental
192192 Profiler : 12 ,
193193 SimpleMemoComponent : 15 ,
194194 SuspenseComponent : 13 ,
@@ -197,7 +197,6 @@ export function getInternalReactConstants(
197197 } ;
198198 } else if ( gte ( version , '16.6.0-beta.0' ) ) {
199199 ReactTypeOfWork = {
200- Block : 22 ,
201200 ClassComponent : 1 ,
202201 ContextConsumer : 9 ,
203202 ContextProvider : 10 ,
@@ -225,7 +224,6 @@ export function getInternalReactConstants(
225224 } ;
226225 } else if ( gte ( version , '16.4.3-alpha' ) ) {
227226 ReactTypeOfWork = {
228- Block : - 1 , // Doesn't exist yet
229227 ClassComponent : 2 ,
230228 ContextConsumer : 11 ,
231229 ContextProvider : 12 ,
@@ -253,7 +251,6 @@ export function getInternalReactConstants(
253251 } ;
254252 } else {
255253 ReactTypeOfWork = {
256- Block : - 1 , // Doesn't exist yet
257254 ClassComponent : 2 ,
258255 ContextConsumer : 12 ,
259256 ContextProvider : 13 ,
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ export type WorkFlags = number;
2626export type ExpirationTime = number ;
2727
2828export type WorkTagMap = { |
29- Block : WorkTag ,
3029 ClassComponent : WorkTag ,
3130 ContextConsumer : WorkTag ,
3231 ContextProvider : WorkTag ,
You can’t perform that action at this time.
0 commit comments