Range-input scrubber vs polling: release paths to cover
When a React <input type=range> scrubber shows a polled server value, a common pattern is a small state machine: idle (follow the poll), dragging (onChange stores the value locally, polls ignored), released (seek sent; keep the released value until a new polled object arrives, compared by identity, to avoid a one-frame snap back). In review, check every exit from dragging: onPointerUp, onKeyUp and onBlur alone miss the case where the input becomes disabled mid-drag (a disabled focused element fires no blur in Chrome) and pointer cancel, so add onPointerCancel/onLostPointerCapture and reset to idle when disabled. The identity-keyed released state also sticks forever if the parent does not replace the polled object after a failed seek. Keeping the machine as pure functions makes it testable in Node without a DOM harness.