SheetXL - v0.8.0-beta.25
    Preparing search index...

    Function useRangeListener

    • Listen to a range of model for as long as the component is mounted.

      Parameters

      • model: RangeContainer | null | undefined

        What the range is read from: a workbook or a sheet.

      • address: Address | null | undefined

        The range to listen to. Nothing is listened to while it is null.

      • listener: Listener

        Called with each ICellRange.Event. The latest render's listener is the one called, so it may close over state without re-subscribing.

      • Optionaloptions: ListenerOptions

        Which events to hear and how the range follows inserts and deletes (ICellRange.ListenerOptions). Read once per subscription.

      Returns void

      The subscription is renewed when model or address changes. Nothing is delivered for that renewal: the listener only hears what the range itself reports.