File tree Expand file tree Collapse file tree 5 files changed +1
-30
lines changed
packages/react-devtools-shared/src/backend Expand file tree Collapse file tree 5 files changed +1
-30
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ import type {LazyComponent} from 'react/src/ReactLazy';
17
17
import type { CurrentDispatcherRef } from './types' ;
18
18
19
19
import {
20
- BLOCK_NUMBER ,
21
- BLOCK_SYMBOL_STRING ,
22
20
FORWARD_REF_NUMBER ,
23
21
FORWARD_REF_SYMBOL_STRING ,
24
22
LAZY_NUMBER ,
@@ -276,14 +274,6 @@ export function describeUnknownElementTypeFrameInDEV(
276
274
ownerFn ,
277
275
currentDispatcherRef ,
278
276
) ;
279
- case BLOCK_NUMBER :
280
- case BLOCK_SYMBOL_STRING :
281
- return describeFunctionComponentFrame (
282
- type . _render ,
283
- source ,
284
- ownerFn ,
285
- currentDispatcherRef ,
286
- ) ;
287
277
case LAZY_NUMBER :
288
278
case LAZY_SYMBOL_STRING : {
289
279
const lazyComponent : LazyComponent < any , any > = ( type : any ) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ function describeFiber(
35
35
IndeterminateComponent,
36
36
SimpleMemoComponent,
37
37
ForwardRef,
38
- Block,
39
38
ClassComponent,
40
39
} = workTagMap ;
41
40
@@ -70,13 +69,6 @@ function describeFiber(
70
69
owner ,
71
70
currentDispatcherRef ,
72
71
) ;
73
- case Block :
74
- return describeFunctionComponentFrame (
75
- workInProgress . type . _render ,
76
- source ,
77
- owner ,
78
- currentDispatcherRef ,
79
- ) ;
80
72
case ClassComponent :
81
73
return describeClassComponentFrame (
82
74
workInProgress . type ,
Original file line number Diff line number Diff line change 13
13
// 2. DevTools must support both Symbol and numeric forms of each symbol;
14
14
// Since e.g. standalone DevTools runs in a separate process, it can't rely on its own ES capabilities.
15
15
16
- export const BLOCK_NUMBER = 0xead9 ;
17
- export const BLOCK_SYMBOL_STRING = 'Symbol(react.block)' ;
18
-
19
16
export const CONCURRENT_MODE_NUMBER = 0xeacf ;
20
17
export const CONCURRENT_MODE_SYMBOL_STRING = 'Symbol(react.concurrent_mode)' ;
21
18
@@ -61,9 +58,6 @@ export const PROVIDER_SYMBOL_STRING = 'Symbol(react.provider)';
61
58
export const SCOPE_NUMBER = 0xead7 ;
62
59
export const SCOPE_SYMBOL_STRING = 'Symbol(react.scope)' ;
63
60
64
- export const SERVER_BLOCK_NUMBER = 0xeada ;
65
- export const SERVER_BLOCK_SYMBOL_STRING = 'Symbol(react.server.block)' ;
66
-
67
61
export const STRICT_MODE_NUMBER = 0xeacc ;
68
62
export const STRICT_MODE_SYMBOL_STRING = 'Symbol(react.strict_mode)' ;
69
63
Original file line number Diff line number Diff line change @@ -169,7 +169,6 @@ export function getInternalReactConstants(
169
169
if ( gte ( version , '17.0.0-alpha' ) ) {
170
170
// TODO (Offscreen) Update the version number above to reflect the first Offscreen alpha/beta release.
171
171
ReactTypeOfWork = {
172
- Block : 22 ,
173
172
ClassComponent : 1 ,
174
173
ContextConsumer : 9 ,
175
174
ContextProvider : 10 ,
@@ -188,7 +187,7 @@ export function getInternalReactConstants(
188
187
LazyComponent : 16 ,
189
188
MemoComponent : 14 ,
190
189
Mode : 8 ,
191
- OffscreenComponent : 23 , // Experimental
190
+ OffscreenComponent : 22 , // Experimental
192
191
Profiler : 12 ,
193
192
SimpleMemoComponent : 15 ,
194
193
SuspenseComponent : 13 ,
@@ -197,7 +196,6 @@ export function getInternalReactConstants(
197
196
} ;
198
197
} else if ( gte ( version , '16.6.0-beta.0' ) ) {
199
198
ReactTypeOfWork = {
200
- Block : 22 ,
201
199
ClassComponent : 1 ,
202
200
ContextConsumer : 9 ,
203
201
ContextProvider : 10 ,
@@ -225,7 +223,6 @@ export function getInternalReactConstants(
225
223
} ;
226
224
} else if ( gte ( version , '16.4.3-alpha' ) ) {
227
225
ReactTypeOfWork = {
228
- Block : - 1 , // Doesn't exist yet
229
226
ClassComponent : 2 ,
230
227
ContextConsumer : 11 ,
231
228
ContextProvider : 12 ,
@@ -253,7 +250,6 @@ export function getInternalReactConstants(
253
250
} ;
254
251
} else {
255
252
ReactTypeOfWork = {
256
- Block : - 1 , // Doesn't exist yet
257
253
ClassComponent : 2 ,
258
254
ContextConsumer : 12 ,
259
255
ContextProvider : 13 ,
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ export type WorkFlags = number;
26
26
export type ExpirationTime = number ;
27
27
28
28
export type WorkTagMap = { |
29
- Block : WorkTag ,
30
29
ClassComponent : WorkTag ,
31
30
ContextConsumer : WorkTag ,
32
31
ContextProvider : WorkTag ,
You can’t perform that action at this time.
0 commit comments