react-native-audio-waveform icon indicating copy to clipboard operation
react-native-audio-waveform copied to clipboard

Error `Warning: Maximum update depth exceeded.` caused by `setViewLayout`

Open dprevost-LMI opened this issue 1 year ago • 1 comments
trafficstars

After loading 56 files where the waveform data is read from a JSON file, we get the below error that is caused by this line if we follow the Console Warning

Warning: Maximum update depth exceeded. can component calls setState but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.

image

image

Precision: I'm using the branch related to this feature where I read data from files, so it seems I'm too fast now and causing this error above when having too many audio file

dprevost-LMI avatar Oct 06 '24 20:10 dprevost-LMI