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