Skip to content

Commit de31745

Browse files
authored
Added inline comment
1 parent afa2f3d commit de31745

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,6 +2130,7 @@ export function attach(
21302130
) {
21312131
canViewSource = true;
21322132
if (stateNode && stateNode.context != null) {
2133+
// Don't show an empty context object for class components that don't use the context API.
21332134
const shouldHideContext =
21342135
elementType === ElementTypeClass &&
21352136
!(type.contextTypes || type.contextType);

0 commit comments

Comments
 (0)