perf: throttle brush drag commits#30
Conversation
|
@dougasimpson is attempting to deploy a commit to the Invoicely OSS Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesBrush Drag RAF Batching
🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
can you verify commit? |
Summary
requestAnimationFrameand commit only the latest pending range per frameBenefits
This reduces forced layout reads during drag and prevents React state updates from running faster than the browser can paint. In dense dashboards that update chart data while the brush is moving, this keeps the brush interaction closer to frame cadence and reduces visible jitter.
Notes