diff --git a/src/client/ImagePickerView/ImagePickerView.tsx b/src/client/ImagePickerView/ImagePickerView.tsx index 7b3c107..f29e7e3 100644 --- a/src/client/ImagePickerView/ImagePickerView.tsx +++ b/src/client/ImagePickerView/ImagePickerView.tsx @@ -65,11 +65,12 @@ export const ImagePickerView = () => { [plugin] ) - const updateVisualZoom = useCallback( - throttle((zoom: number) => { - setGridHeight(zoom) - setRowHeight(zoom * ROW_HEIGHT) - }, 50), + const updateVisualZoom = useMemo( + () => + throttle((zoom: number) => { + setGridHeight(zoom) + setRowHeight(zoom * ROW_HEIGHT) + }, 50), [] )