Fixed render loop on voice notes draft
This commit is contained in:
parent
5dff1768bd
commit
546be943ee
1 changed files with 3 additions and 2 deletions
|
@ -137,9 +137,10 @@ function SizedWaveformScrubber({
|
||||||
onScrub,
|
onScrub,
|
||||||
width,
|
width,
|
||||||
}: SizedWaveformScrubberProps) {
|
}: SizedWaveformScrubberProps) {
|
||||||
const handleCorrupted = () => {
|
const handleCorrupted = useCallback(() => {
|
||||||
log.warn('SizedWaveformScrubber: audio corrupted');
|
log.warn('SizedWaveformScrubber: audio corrupted');
|
||||||
};
|
}, []);
|
||||||
|
|
||||||
const { peaks, duration } = useComputePeaks({
|
const { peaks, duration } = useComputePeaks({
|
||||||
audioUrl,
|
audioUrl,
|
||||||
activeDuration,
|
activeDuration,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue