We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52b956c commit 1d7651cCopy full SHA for 1d7651c
assets/src/widget/components/MetricBoxes.js
@@ -1,4 +1,4 @@
1
-import { useMemo } from '@wordpress/element';
+import { useCallback } from '@wordpress/element';
2
3
import {
4
compressionPercentage,
@@ -25,7 +25,7 @@ export default function MetricBoxes() {
25
}
26
];
27
28
- const getMetricValue = ( metric ) => useMemo( () => {
+ const getMetricValue = useCallback( ( metric ) => {
29
const metricValue = serviceData[ metric ];
30
31
if ( 'compression_percentage' === metric ) {
0 commit comments