addComputed
FitFileViewer - API Documentation v29.9.0
FitFileViewer - API Documentation / utils/state/core/computedStateManager / addComputed
Function: addComputed()
addComputed(
key:string,computeFn:Function,deps?:string[]):Function
Defined in: utils/state/core/computedStateManager.js:297
Register a computed value (convenience function)
Parametersβ
keyβ
string
Unique key for the computed value
computeFnβ
Function
Function that computes the value
deps?β
string[] = []
Array of state paths this computed value depends on
Returnsβ
Function
Cleanup function