define
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/state/core/computedStateManager / define
Function: define()
define(
key:string,computeFn:Function,deps:string[]):Function
Defined in: utils/state/core/computedStateManager.js:313
Alias for addComputed (convenience function for backward compatibility)
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