Context: We drive rough-notation highlights inside a React app with a ResizeObserver
that provides instant redraw on container resize. The library's internal
400ms debounced listener competes with ours. We currently cast to
{ detachListeners?: () => void } and call the private method.
Request: expose a public detachListeners() (or accept an option to
skip attaching the listener in the first place) so downstream apps can
wire their own resize strategy without relying on internals.
Context: We drive rough-notation highlights inside a React app with a ResizeObserver
that provides instant redraw on container resize. The library's internal
400ms debounced listener competes with ours. We currently cast to
{ detachListeners?: () => void }and call the private method.Request: expose a public
detachListeners()(or accept an option toskip attaching the listener in the first place) so downstream apps can
wire their own resize strategy without relying on internals.