Skip to content

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented May 30, 2024

Previously, when a new processor was being set, we would re-use the processor element if possible.
However, subsequently, we called stopProcessor which in turn then removed that element from the DOM.

This PR keeps the element around as a local variable and assigns it to this.processorElement only after the old processor has been stopped.

also closes #1148

Copy link

changeset-bot bot commented May 30, 2024

🦋 Changeset detected

Latest commit: a8882fb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lukasIO lukasIO requested a review from davidzhao May 30, 2024 10:58
Copy link
Contributor

github-actions bot commented May 30, 2024

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 80.06 KB (+0.02% 🔺)
dist/livekit-client.umd.js 85.8 KB (+0.04% 🔺)

@lukasIO lukasIO merged commit a8a2aed into main May 31, 2024
@lukasIO lukasIO deleted the lukas/dont-destroy-processor-element branch May 31, 2024 07:55
@github-actions github-actions bot mentioned this pull request May 31, 2024
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.

TrackProcessor: OverconstrainedError and TypeError Issues
2 participants