Skip to content

Public API for detaching the internal resize listener #90

@charliec2004

Description

@charliec2004

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions