-
Notifications
You must be signed in to change notification settings - Fork 381
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: provide/inject 完善小程序父组件继承 & 支持 RN #1781
Open
wangshunnn
wants to merge
12
commits into
master
Choose a base branch
from
feat-mp-parent-reference
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wangshunnn
changed the title
feat: provide/inject 父组件继承(小程序)
Feat: provide/inject 完善父组件继承(小程序)
Dec 25, 2024
hiyuki
reviewed
Jan 6, 2025
wangshunnn
changed the title
Feat: provide/inject 完善父组件继承(小程序)
Feat: provide/inject 完善小程序父组件继承 & 支持 RN
Jan 14, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feat
小程序
Mpx 输出小程序端的父组件引用关系实现是基于小程序原生API selectOwnerComponent。在 Mpx 中对该 API 性能测速如下:
测试环境:iPhone 12 真机
1000
个子组件平铺形式排列~27 ms
(调用 API1000
次)~0.027 ms/iter
1100
个组件多叉树形式递归嵌套排列~32 ms
(调用 API1100
次)~0.029 ms/iter
RN
useContext
钩子转换实现