Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes the mounting issue introduced by React 18's new strict mode #179

Merged
merged 1 commit into from
Sep 24, 2022
Merged

Fixes the mounting issue introduced by React 18's new strict mode #179

merged 1 commit into from
Sep 24, 2022

Conversation

ferdiamg
Copy link

Should fix this issue: #169 (comment)

@lhz516
Copy link
Owner

lhz516 commented Sep 23, 2022

As I mentioned in #169 - if we only remove this line, the audio would continue playing even if the component is destroyed. So we need some alternative solution.

never mind, I just tested it and found that the audio won't stop when the component is destroyed.

@lhz516 lhz516 merged commit 3ac5976 into lhz516:master Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants