【问题标题】:Using react dev tools inside iframe [In Chrome]在 iframe 中使用 react 开发工具 [在 Chrome 中]
【发布时间】:2021-09-19 11:56:29
【问题描述】:

当 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 repo (https://github.com/facebook/react/tree/master/packages/react-devtools-extensions#build-steps) 并添加 all_frames 选项并使用它吗?

【问题讨论】:

    标签: javascript reactjs google-chrome-extension react-redux react-devtools


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2011-03-17
      • 2011-08-08
      • 2015-10-16
      • 2018-04-19
      • 2017-10-14
      • 2013-09-03
      • 2021-04-09
      • 2017-08-12
      • 2015-08-26
      相关资源
      最近更新 更多