`getContextChangedKeys` only handles class components:
https://github.com/facebook/react/blob/355591add41c0f6dad738fdb1b6603e0786b7b4e/packages/react-devtools-shared/src/backend/renderer.js#L1276-L1304
fiber,
          (renderer.currentDispatcherRef: any),
          true,  I
        );
      } finally {
         R
        for (const method in originalConsoleMethods) {
          try {
             $
            console[method] = originalConsoleMethods[method];
          } catch (error) {}
        }
      }
    }
    let rootType = null;
    let current = fiber;
    while (current.return !== null) {
      current = current.return;
    }
    const fiberRoot = current.stateNode;
    if (fiberRoot != null && fiberRoot._debugRootType !== null) {
      rootType = fiberRoot._debugRootType;
    }
    const errors = fiberIDToErrorsMap.get(id) || new Map();
    const warnings = fiberIDToWarningsMap.get(id) || new Map();
    const isErrored =
      (fiber.flags & DidCapture) !== NoFlags ||
      forceErrorForFiberIDs.get(id) === true;
    let targetErrorBoundaryID;
    if (isErrorBoundary(fiber)) {