* 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
useEffect(
    () => {
      if (selectedElementID === null) {
        return () => {};
      }
      const rendererID = store.getRendererIDForElement(selectedElementID);
      let timeoutID: TimeoutID | null = null;
      const sendRequest = () => {
        timeoutID = null;
        if (rendererID !== null) {
          bridge.send('inspectElement', {id: selectedElementID, rendererID});
        }
      };
      
      
      sendRequest();
      const onInspectedElement = (data: InspectedElementPayload) => {
        
        if (data.id === selectedElementID) {
          switch (data.type) {
            case 'no-change':
            case 'full-data':
            case 'hydrated-path':
              if (timeoutID !== null) {
                clearTimeout(timeoutID);
              }
              timeoutID = setTimeout(sendRequest, 1000);
              break;
            default: