Skip to main content

addComputed

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/state/core/computedStateManager / addComputed

Function: addComputed()

addComputed(key: string, computeFn: ComputedFunction, deps?: string[]): Unsubscribe

Defined in: utils/state/core/computedStateManager.ts:327

Registers a computed value.

Parameters​

key​

string

computeFn​

ComputedFunction

deps?​

string[] = []

Returns​

Unsubscribe