When react is inside an iframe, chrome extension for react devtools fails to detect react.
This is because the extension sets __REACT_DEVTOOLS_GLOBAL_HOOK__ only on the top level window. Apparently it's possible to have __REACT_DEVTOOLS_GLOBAL_HOOK__ on iframes too by adding all_frames: true in extension manifest.json. It was done by redux devtools extension in zalmoxisus/redux-devtools-extension#56.
Have you considered adding all_frames: true to chrome extension ?
When react is inside an iframe, chrome extension for react devtools fails to detect react.
This is because the extension sets
__REACT_DEVTOOLS_GLOBAL_HOOK__only on the top level window. Apparently it's possible to have__REACT_DEVTOOLS_GLOBAL_HOOK__on iframes too by addingall_frames: truein extension manifest.json. It was done by redux devtools extension in zalmoxisus/redux-devtools-extension#56.Have you considered adding
all_frames: trueto chrome extension ?Steps To Reproduce
react-main.html