Skip to content

Commit 9ff6225

Browse files
committed
Devtools
1 parent 11c8e8f commit 9ff6225

File tree

5 files changed

+1
-30
lines changed

5 files changed

+1
-30
lines changed

packages/react-devtools-shared/src/backend/DevToolsComponentStackFrame.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import type {LazyComponent} from 'react/src/ReactLazy';
1717
import type {CurrentDispatcherRef} from './types';
1818

1919
import {
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);

packages/react-devtools-shared/src/backend/DevToolsFiberComponentStack.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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,

packages/react-devtools-shared/src/backend/ReactSymbols.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
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-
1916
export const CONCURRENT_MODE_NUMBER = 0xeacf;
2017
export const CONCURRENT_MODE_SYMBOL_STRING = 'Symbol(react.concurrent_mode)';
2118

@@ -61,9 +58,6 @@ export const PROVIDER_SYMBOL_STRING = 'Symbol(react.provider)';
6158
export const SCOPE_NUMBER = 0xead7;
6259
export 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-
6761
export const STRICT_MODE_NUMBER = 0xeacc;
6862
export const STRICT_MODE_SYMBOL_STRING = 'Symbol(react.strict_mode)';
6963

packages/react-devtools-shared/src/backend/renderer.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ export function getInternalReactConstants(
169169
if (gte(version, '17.0.0-alpha')) {
170170
// TODO (Offscreen) Update the version number above to reflect the first Offscreen alpha/beta release.
171171
ReactTypeOfWork = {
172-
Block: 22,
173172
ClassComponent: 1,
174173
ContextConsumer: 9,
175174
ContextProvider: 10,
@@ -188,7 +187,7 @@ export function getInternalReactConstants(
188187
LazyComponent: 16,
189188
MemoComponent: 14,
190189
Mode: 8,
191-
OffscreenComponent: 23, // Experimental
190+
OffscreenComponent: 22, // Experimental
192191
Profiler: 12,
193192
SimpleMemoComponent: 15,
194193
SuspenseComponent: 13,
@@ -197,7 +196,6 @@ export function getInternalReactConstants(
197196
};
198197
} else if (gte(version, '16.6.0-beta.0')) {
199198
ReactTypeOfWork = {
200-
Block: 22,
201199
ClassComponent: 1,
202200
ContextConsumer: 9,
203201
ContextProvider: 10,
@@ -225,7 +223,6 @@ export function getInternalReactConstants(
225223
};
226224
} else if (gte(version, '16.4.3-alpha')) {
227225
ReactTypeOfWork = {
228-
Block: -1, // Doesn't exist yet
229226
ClassComponent: 2,
230227
ContextConsumer: 11,
231228
ContextProvider: 12,
@@ -253,7 +250,6 @@ export function getInternalReactConstants(
253250
};
254251
} else {
255252
ReactTypeOfWork = {
256-
Block: -1, // Doesn't exist yet
257253
ClassComponent: 2,
258254
ContextConsumer: 12,
259255
ContextProvider: 13,

packages/react-devtools-shared/src/backend/types.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export type WorkFlags = number;
2626
export type ExpirationTime = number;
2727

2828
export type WorkTagMap = {|
29-
Block: WorkTag,
3029
ClassComponent: WorkTag,
3130
ContextConsumer: WorkTag,
3231
ContextProvider: WorkTag,

0 commit comments

Comments
 (0)