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
const handleNext = async () => { const fieldsValue = await form.validateFields(); setFormVals({ ...formVals, ...fieldsValue }); if (currentStep < 2) { forward(); } else { handleUpdate(formVals); } };
这里setFormVals是异步的,因此在handleUpdate里拿到的不是最新数据。
在service.ts的updateRule打印params内容
The text was updated successfully, but these errors were encountered:
来个 pr 修复一下?
Sorry, something went wrong.
同样问题
Here's a workaround:
- handleUpdate(formVals); + handleUpdate({ ...formVals, ...fieldsValue });
No branches or pull requests
🐛 bug 描述
这里setFormVals是异步的,因此在handleUpdate里拿到的不是最新数据。
📷 复现步骤
在service.ts的updateRule打印params内容
🏞 期望结果
💻 复现代码
© 版本信息
🚑 其他信息
The text was updated successfully, but these errors were encountered: