We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.37.1
Others
chrome 127.0.6533.88
No response
组件ImageUploader上传两张图片单数渲染4次,重复渲染,期望渲染两次
The text was updated successfully, but these errors were encountered:
方便在比如 codesandbox 之类的在线平台, 提供复现 demo 吗
Sorry, something went wrong.
上传接口是集团内的不方便提供,我看下用官方文档的用例造一个出来demo
复现地址:https://codesandbox.io/s/spring-pond-6rnsrc?file=/app.tsx 复现步骤:上传第二张照片时会显示 4张
renderItem 只需要渲染当前参数的 file,你每个都map渲染导致上面结果(上传2张会渲染4张,上传3张会渲染9张)。
还有 key 重复了(跟本 issue 无关)
感谢,我去项目里试一下
No branches or pull requests
Version of antd-mobile
5.37.1
Operating system and its version
Others
Browser and its version
chrome 127.0.6533.88
Sandbox to reproduce
No response
What happened?
组件ImageUploader上传两张图片单数渲染4次,重复渲染,期望渲染两次
Relevant log output
No response
The text was updated successfully, but these errors were encountered: