subscribe
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/state/domain/appState / subscribe
Function: subscribe()
subscribe(
event:string,callback:Function):Function
Defined in: utils/state/domain/appState.js:691
Subscribe to state changes with cleanup
Parametersβ
eventβ
string
Event name or state path
callbackβ
Function
Event handler
Returnsβ
Function
Cleanup function