* Don't show "context" for classes without either contextType or contextTypes
* For classes with contextTypes, change the label to "legacy context" instead

---
Originally reported by @gaearon via https://github.com/bvaughn/react-devtools-experimental/issues/368
state: hydrateHelper(state),
            };
            element = store.getElementByID(id);
            if (element !== null) {
              const request = inProgressRequests.get(element);
              if (request != null) {
                inProgressRequests.delete(element);
                batchedUpdates(() => {
                  request.resolveFn(inspectedElement);
                  setCurrentlyInspectedElement(inspectedElement);
                });
              } else {
                resource.write(element, inspectedElement);
                
                if (id === selectedElementID) {
                  setCurrentlyInspectedElement(inspectedElement);
                }
              }
            }
            break;
          default:
            break;
        }
      };
      bridge.addListener('inspectedElement', onInspectedElement);
      return () =>
        bridge.removeListener('inspectedElement', onInspectedElement);
    },
    [bridge, currentlyInspectedElement, selectedElementID, store],
  );