ConstThe model type (e.g., IWorkbook, ISheet)
The listener interface type (e.g., ISheet.IListeners)
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.).