pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

🐛[BUG] ProFormMoney 在React 18.3.1 下报 Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate

Open bxvs888 opened this issue 9 months ago • 3 comments

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

含有 ProFormMoney 页面在React 18.3.1 下打开直接报错 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.

📷 复现步骤

任何一个form,只要含有 ProFormMoney 就报错。

🏞 期望结果

正常展示金额输入框 。

💻 复现代码

© 版本信息

  • ProComponents 版本: [e.g. 4.0.0] 2.7.9
  • umi 版本 4.2.5
  • 浏览器环境 safari
  • 开发环境 [e.g. mac OS] macOS

🚑 其他信息

image

bxvs888 avatar May 23 '24 03:05 bxvs888