React Invariant Violation:Minified React error#267

时间:2018-05-17 07:54:35

标签: ios reactjs cordova

Invariant Violation

从ReactDOM.render异常中获取此消息。

我在iOS上的cordova应用程序中运行React。它很少发生,通常是在设备休眠或重新安装一段时间后第一次运行应用程序时。

有什么想法吗?!

这里的顶级渲染方法

function renderReact() {
  ReactDOM.render(
    <App>
      <AppRoute />
    </App>,
    document.getElementById("app")
  );
}

应用程序组件:

render() {
    return (
      <Provider store={store}>
        <WrapperDiv>
          {this.props.children}
          <ModalController />
          <DialogController />
        </WrapperDiv>
        {/* {__DEVTOOLS__ && <DevTools />} */}

      </Provider>
    );
  }

1 个答案:

答案 0 :(得分:1)

我向我们的测试版测试人员发送了一个开发版,并且设法重现了它。

似乎这个特定问题是由于使用null参数调用React.cloneElement。

相关问题