Skip to content
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

Merged
merged 3 commits into from
Aug 1, 2023

Conversation

linbudu599
Copy link
Collaborator

@linbudu599 linbudu599 commented Jul 17, 2023

在 @ice/appear 中直接支持 Weex 组件分发。

场景:业务项目为启用了 rax-compat 的 ICE 项目,rax-compat 内部直接引入了 @ice/appear 作为 appear-polyfill 支持,而该项目有 Weex 场景支持,将 @ice/appear alias 到了跨端组件库内的 @ali/ice-appear 组件,而 @ali/ice-appear 组件内又依赖了 @ice/appear,导致了循环依赖。

@codecov-commenter
Copy link

codecov-commenter commented Jul 17, 2023

Codecov Report

❗ No coverage uploaded for pull request base (release/next@39c92e5). Click here to learn what that means.
Patch has no changes to coverable lines.

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.
📢 Have feedback on the report? Share it here.

@answershuto
Copy link
Collaborator

pr 描述需要补全

Copy link
Collaborator

@wssgcg1213 wssgcg1213 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

@linbudu599 linbudu599 requested review from wssgcg1213, luhc228 and answershuto and removed request for wssgcg1213 July 18, 2023 13:21
Base automatically changed from release/next to master July 20, 2023 06:10
@linbudu599 linbudu599 changed the base branch from master to release/next July 26, 2023 06:25
@wssgcg1213 wssgcg1213 merged commit 8af8452 into release/next Aug 1, 2023
@wssgcg1213 wssgcg1213 deleted the chore/ice_appear_weex_support branch August 1, 2023 05:29
@ClarkXia ClarkXia mentioned this pull request Aug 2, 2023
6 tasks
onAppear && nodeRef?.addEventListener('appear', (e: CustomEvent) => onAppear(e));

return () => {
onAppear && nodeRef?.removeEventListener('appear', (e: CustomEvent) => onAppear(e));
Copy link

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 是不是就不生效了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need review Need Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants