KamoCRM

Drop the container ref nothing reads

Refactorkamo-internal
Shipped
2 செப்டம்பர், 2026 அன்று 4:54 AM UTC
Author
Kamo
Commit
c38340a

containerRef was declared and attached to MessageBrowser's root element, but containerRef.current is never read anywhere in the file — it has been dead since it was added. The drag-to-resize handler it looks like it belongs to works off dragStartX and dragStartWidth and never needed it. The offline banner guard anchored the root element on this ref, so it now anchors on the component's own background instead, which is the one class the root carries and the inner rows do not.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing