### Website or app

reactjs.org

### Repro steps

1. Open a website that uses React.
2. Inspect an element that uses Hooks.
3. Attempt to load hook names.
4. Loading hook names always fails:

![image](https://user-images.githubusercontent.com/1271509/137997605-a3f601a9-59e5-4370-b307-3ff50af22cae.png)

extensionPanel => {
            extensionPanel.onShown.addListener(panel => {
              if (needsToSyncElementSelection) {
                needsToSyncElementSelection = false;
                bridge.send('syncSelectionFromNativeElementsPanel');
              }
              if (currentPanel === panel) {
                return;
              }
              currentPanel = panel;
              componentsPortalContainer = panel.container;
              if (componentsPortalContainer != null) {
                ensureInitialHTMLIsCleared(componentsPortalContainer);
                render('components');
                panel.injectStyles(cloneStyleTags);
                logEvent({event_name: 'selected-components-tab'});
              }
            });
            extensionPanel.onHidden.addListener(panel => {
              // T
            });
          },
        );
        chrome.devtools.panels.create(
          isChrome ? '⚛️ Profiler' : 'Profiler',
          '',
          'panel.html',
          extensionPanel => {
            extensionPanel.onShown.addListener(panel => {
              if (currentPanel === panel) {