[英]React MUI custom select component on mobile throws error
来自 mui doc的 Codesandbox 链接
https://codesandbox.io/s/izm2c2?file=/demo.js通过在新窗口中打开来检查并尝试不同的维度(手机、ipad 或任何东西)。
我找不到解决此错误的方法。
Error
Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
提前致谢!
问题似乎出在反应 18> 上。 尝试降级以做出反应 17< 这就是为我解决问题的原因。
您也应该在 github 上发布问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.