-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
chore: weex support for ice appear #6391
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## release/next #6391 +/- ##
===============================================
Coverage ? 80.26%
===============================================
Files ? 238
Lines ? 21502
Branches ? 2650
===============================================
Hits ? 17259
Misses ? 4199
Partials ? 44 ☔ View full report in Codecov by Sentry. |
pr 描述需要补全 |
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.
同上
onAppear && nodeRef?.addEventListener('appear', (e: CustomEvent) => onAppear(e)); | ||
|
||
return () => { | ||
onAppear && nodeRef?.removeEventListener('appear', (e: CustomEvent) => onAppear(e)); |
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.
hi,@linbudu599 weex 下 addEventListener、removeEventListener 对 onAppear 都加了一层 wrapper,所以这里 removeEventListener 是不是就不生效了
在 @ice/appear 中直接支持 Weex 组件分发。
场景:业务项目为启用了 rax-compat 的 ICE 项目,rax-compat 内部直接引入了 @ice/appear 作为 appear-polyfill 支持,而该项目有 Weex 场景支持,将 @ice/appear alias 到了跨端组件库内的 @ali/ice-appear 组件,而 @ali/ice-appear 组件内又依赖了 @ice/appear,导致了循环依赖。