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

Fixing setInterval not cleared on microphone state #3213

Merged
merged 1 commit into from Apr 26, 2023

Conversation

moufmouf
Copy link
Collaborator

Because of a bug in Svelte (see sveltejs/svelte#5268), the onDestroy callback of sub-components are not called if one of the parent components has a transition.

This in turn caused stores to not be unsubscribed, and ultimately, a "setInterval" to read the microphone audio level not to be cleared.

We fix this by removing any Svelte based transitions/animations.

Because of a bug in Svelte (see sveltejs/svelte#5268), the onDestroy callback of sub-components are not called if one of the parent components has a transition.

This in turn caused stores to not be unsubscribed, and ultimately, a "setInterval" to read the microphone audio level not to be cleared.

We fix this by removing any Svelte based transitions/animations.
@moufmouf moufmouf added bug Something isn't working deploy Create a deploy environment labels Apr 26, 2023
@github-actions
Copy link

@moufmouf moufmouf merged commit 33b6415 into master Apr 26, 2023
25 of 43 checks passed
@moufmouf moufmouf deleted the remove_animations_mediabox branch April 26, 2023 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deploy Create a deploy environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant