当 React 应用程序嵌套在 iframe 中时,React 的开发工具 Chrome 扩展程序无法正常工作。
参考:https://github.com/facebook/react/issues/18945
开发工具团队建议的解决方案: https://github.com/zalmoxisus/redux-devtools-extension/pull/56。
“将 'all_frames' 选项添加到 manifest.json 中以允许 DevTools 访问可能包含 Store 的 iframe 而不是主页。”
要在 iframe 中启用开发工具,应该怎么做?我应该克隆 devtools 存储库 (https://github.com/facebook/react/tree/master/packages/react-devtools-extensions#build-steps) 并添加 all_frames 选项然后使用吗?