### Website or app

https://react.dev

### Repro steps

1. Go to components tab.
2. For any component, try to copy the value in props, hooks etc. to clipboard.

![image](https://user-images.githubusercontent.com/75756768/228340421-a901498a-1308-4e8f-b502-989f4c60331f.png)


### How often does this bug happen?

Every time

### DevTools package (automated)

_No response_

### DevTools version (automated)

_No response_

### Error message (automated)

_No response_

### Error call stack (automated)

_No response_

### Error component stack (automated)

_No response_

### GitHub query string (automated)

_No response_
T
      const wasMounted =
        alternate.memoizedState != null &&
        alternate.memoizedState.element != null &&
         A 
        alternate.memoizedState.isDehydrated !== true;
      const isMounted =
        current.memoizedState != null &&
        current.memoizedState.element != null &&
         A 
        current.memoizedState.isDehydrated !== true;
      if (!wasMounted && isMounted) {
         M
        setRootPseudoKey(currentRootID, current);
        mountFiberRecursively(current, null, false, false);
      } else if (wasMounted && isMounted) {
         U
        updateFiberRecursively(current, alternate, null, false);
      } else if (wasMounted && !isMounted) {
         U
        removeRootPseudoKey(currentRootID);
        recordUnmount(current, false);
      }
    } else {
       M
      setRootPseudoKey(currentRootID, current);
      mountFiberRecursively(current, null, false, false);
    }
    if (isProfiling && isProfilingSupported) {
      if (!shouldBailoutWithPendingOperations()) {