.4062073974432528:1bc6ad479913580c063b4167b20affd8_69e84e7d1ffbb16c7ee08c91.69e856871ffbb16c7ee08d36.69e856877d209b4c504d028b:Trae CN.T(2026/4/22 13:03:03)#36326
Conversation
移除对全局异步操作状态的检查,确保乐观更新的还原仅与触发它的特定操作相关。这样即使其他组件有较慢的重叠异步操作,当前组件的乐观UI也能正确还原。
确保乐观更新的回滚机制仅与触发它的特定操作相关联,而不是被全局异步操作阻塞。添加回归测试验证组件B的乐观UI在自身操作完成时回滚,而不受组件A慢速操作的影响。
|
Hi @CGW516! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Comparing: 94643c3...684ee57 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
fix(useOptimistic): 修复乐观更新在异步操作中的隔离问题
确保乐观更新的回滚机制仅与触发它的特定操作相关联,而不是被全局异步操作阻塞。添加回归测试验证组件B的乐观UI在自身操作完成时回滚,而不受组件A慢速操作的影响。