[英]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.