-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
fix: React 19 scroll sync #902
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
src/PickerPanel/TimePanel/TimePanelBody/TimeColumn.tsxOops! Something went wrong! :( ESLint: 8.57.1 Error: Cannot read config file: /.eslintrc.js
变更概览变更总结本次变更涉及两个文件: 变更
对链接问题的评估
序列图sequenceDiagram
participant User
participant TimeColumn
participant ScrollComponent
User->>TimeColumn: 选择时间
TimeColumn->>ScrollComponent: 更新滚动位置
ScrollComponent-->>TimeColumn: 响应滚动事件
庆祝诗歌
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (4)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #902 +/- ##
=======================================
Coverage 95.47% 95.47%
=======================================
Files 64 64
Lines 2738 2738
Branches 770 742 -28
=======================================
Hits 2614 2614
Misses 121 121
Partials 3 3 ☔ View full report in Codecov by Sentry. |
fix ant-design/ant-design#52254
从代码看,每次传入新的fn做一次调用是符合预期的。但是这里如果返回的 units 是相同的,那滚动的确没有什么意义。
Summary by CodeRabbit
性能优化
测试改进