-
Notifications
You must be signed in to change notification settings - Fork 191
feat: Queue support #337
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
feat: Queue support #337
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## master #337 +/- ##
==========================================
+ Coverage 67.43% 67.90% +0.46%
==========================================
Files 47 47
Lines 1035 1050 +15
Branches 343 347 +4
==========================================
+ Hits 698 713 +15
Misses 298 298
Partials 39 39
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
🐂的 |
const existStyle = findStyles(container).filter(node => | ||
['prepend', 'prependQueue'].includes(node[APPEND_ORDER]), | ||
); | ||
if (existStyle.length) { |
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.
所以这里第一个 style 还是 prepend?qiankun 没劫持 prepend,会透出去,后面 exitStyle 找不到还是会继续 prepend?
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.
prepend 让 qiankun 处理就好了,否则 rc-util 就要做框架检测了,这样就变成针对 qiankun 的耦合了。
prepend=queue
时,第一个 style 会添加到最前端,之后 style 会依次添加。ref ant-design/ant-design#36742