-
-
Notifications
You must be signed in to change notification settings - Fork 50.8k
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
fix: React 16.13 warning #21702
fix: React 16.13 warning #21702
Conversation
setInlineErrors({ | ||
...inlineErrors, | ||
[subName]: subErrors, | ||
Promise.resolve().then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这样写相当于 setTimeout 么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
上层 Form.Item 不在乎何时收到消息。所以顶层延迟掉。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那直接settimeout吧?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不用,消息通知越快越好。不用等 DOM render。
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit e4ee20a:
|
Codecov Report
@@ Coverage Diff @@
## master #21702 +/- ##
==========================================
+ Coverage 97.88% 97.88% +<.01%
==========================================
Files 305 305
Lines 6998 6999 +1
Branches 1933 1887 -46
==========================================
+ Hits 6850 6851 +1
Misses 148 148
Continue to review full report at Codecov.
|
🤔 This is a ...
🔗 Related issue link
fix #21698
💡 Background and solution
📝 Changelog
react@16.13.0
.react@16.13.0
会报警告的问题。☑️ Self Check before Merge