There was an error while loading. Please reload this page.
1 parent afa2f3d commit de31745Copy full SHA for de31745
1 file changed
packages/react-devtools-shared/src/backend/renderer.js
@@ -2130,6 +2130,7 @@ export function attach(
2130
) {
2131
canViewSource = true;
2132
if (stateNode && stateNode.context != null) {
2133
+ // Don't show an empty context object for class components that don't use the context API.
2134
const shouldHideContext =
2135
elementType === ElementTypeClass &&
2136
!(type.contextTypes || type.contextType);
0 commit comments