Module "throttledComputed"
Functions
throttledComputed
- throttledComputed<T>(compute: () => T, delay: number, name?: undefined | string): { get: any; refresh: any }
-
Type parameters
Parameters
-
compute: () => T
-
delay: number
-
Optional name: undefined | string
Returns { get: any; refresh: any }
-
get: function
-
Returns NonNullable<T>
-
refresh: function
-
Returns void
Like
computed
, except that after creation, subsequent re-evaluations are throttled to occur at the specified minimum interval.