SheetXL - v0.3.20
    Preparing search index...

    Function useModelListener

    • This hook delegates to the model addListener. This also ensures that it a listener object is passed in that was dynamically recreated it will not deregister on each render.

      Type Parameters

      • SOURCE
      • EVENTS

      Parameters

      • source: ISource<SOURCE>
      • listeners: IListener.Callbacks<SOURCE, EVENTS>
      • Optionaloptions: useModelListenerOptions

      Returns void

      IMPORTANT This assumes that the while the listeners object may change the shape does not.