The model type (e.g., IWorkbook, ISheet)
The listener interface type (e.g., ISheet.IListeners)
The model instance to listen to, or null to listen to nothing
Object containing listener callbacks for various events
Optionaloptions: ModelListenerOptions
Optional configuration
This hook automatically manages the listener lifecycle:
source changessource changeslisteners object reference changes
(as long as the shape/keys remain consistent)By default (ignoreModelChange: false), all listeners are called once immediately
on mount with the current source state, allowing you to initialize component state
based on the model's current values.
React hook for subscribing to model-level events (workbooks, sheets, etc.).