Function UpdateFrequency

Utility that will report the frequency of updates to tracked data.

import { UpdateFrequency } from 'reactiveweb/fps';

export default class Demo extends Component {
@tracked someProp;

@use updateFrequency = UpdateFrequency(() => this.someProp);

<template>
{{this.updateFrequency}}
</template>
}

NOTE: the function passed to UpdateFrequency may not set tracked data.

  • Parameters

    • Rest...args: [ofWhat: (() => unknown), updateInterval: any]

    Returns number