We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7052e44 + f06c0a5 commit 3966b38Copy full SHA for 3966b38
1 file changed
src/components/AudioPlayer.tsx
@@ -59,6 +59,11 @@ export const AudioPlayer: React.FC<AudioInterface> = ({
59
const [coefficient, setCoefficient] = useState<number>(0);
60
const [hasError, setHasError] = useState<boolean>(false);
61
62
+ useEffect(() => {
63
+ handleReload();
64
+ // eslint-disable-next-line react-hooks/exhaustive-deps
65
+ }, [src]);
66
+
67
useEffect(() => {
68
if (!isNaN(volume)) {
69
const tempVol = volume > 100 ? 100 : volume < 0 ? 0 : volume;
0 commit comments