-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
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
能写一个 uploader 组件 status,真正用起来的示例么? #648
Comments
上传结束后如果需要更新状态,我实验下来这样子做就可以: const updatedValue = ... // 更新完状态之后的 Uploader 值
setValue(updatedValue.concat([]) // 这样子就能够触发组件内部的 UI 更新 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这是我写的一个例子,因为setState 会一并执行,导致页面仅渲染一次,一直停留到 loading 状态;可以出个官方示例,控制这个status么
The text was updated successfully, but these errors were encountered: