The render does not reload after a wavesurfer event

Viewed 26

I have a site in React and I use wavesurfer to play an audio.
I have to realize a certain behavior when the audio enters a region.
For that wavesurfer provides the event region-in
After the execution of my method the render is not reloaded, while I change a state.

wavesurferObj.on('region-in', (region) => {
setCurrentRegion(region)
});

But render is reloaded after another event saving what happened before.

0 Answers
Related