Skip to content

feat:添加shouldComponentUpdate方法 #10

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

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

panda12530
Copy link

@panda12530 panda12530 commented Aug 15, 2024

Summary

close #9
请解释此次更改的 动机,以下是一些帮助您的要点:
1.添加shouldComponentUpdate方法:
houldComponentUpdate 是 React 中的一个生命周期方法,用于优化组件的渲染性能。它的作用是决定组件是否需要重新渲染。通过实现这个方法,你可以控制组件在 props 或 state 发生变化时是否进行重新渲染。

Test Plan

展示代码的稳定性。例如:用来复现场景的命令输入和结果输出、测试用例的路径地址,或者附上截图和视频。
测试用例地址:https://github.com/MyAndroidNetZWJ/RNOHDCS/tree/main/react-native-material-dropdown

Checklist

  • 已经在真机设备或模拟器上测试通过
  • 已经与 Android 或 iOS 平台做过效果/功能对比
  • 已经添加了对应 API 的测试用例(如需要)
  • 已经更新了文档(如需要)
  • 更新了 JS/TS 代码 (如有)

@Magic-Neko Magic-Neko merged commit d23fa2f into react-native-oh-library:sig Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

使用TextField的value属性有异常,被选中value无法刷新
2 participants