`getContextChangedKeys` only handles class components:
https://github.com/facebook/react/blob/355591add41c0f6dad738fdb1b6603e0786b7b4e/packages/react-devtools-shared/src/backend/renderer.js#L1276-L1304
}
    }
    let dispatch = null;
    let setState = null;
    const Component = ({count, string}) => {
      
      setState = React.useState('abc')[1];
      dispatch = React.useReducer(reducer, {value: true})[1];
      
      
      React.useContext(Context);
      
      
      React.useCallback(() => () => {}, [string]);
      React.useMemo(() => string, [string]);
      
      React.useEffect(() => {}, [string]);
      React.useLayoutEffect(() => {}, [string]);
      return null;
    };
    const container = document.createElement('div');
    utils.act(() => store.profilerStore.startProfiling());
    utils.act(() =>
      legacyRender(
        <Context.Provider value={true}>
          <Component count={1} />
        </Context.Provider>,
        container,
      ),
    );