livekit / components-js

Official open source React components and examples for building with LiveKit.
https://livekit.io
Apache License 2.0
149 stars 64 forks source link

Fix releasing of local tracks in prejoin #844

Closed lukasIO closed 4 months ago

lukasIO commented 4 months ago

more subtleties when navigating away from prejoin. These changes make sure that the locally scoped variable is used to stop previously created tracks within the useEffect. Tested both against meet and the example and seems to consistently work now

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: d4df9cd226d9ab6dbe60e5742d5a5f78c2906bb0

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

This PR includes changesets to release 5 packages | Name | Type | | --------------------------------- | ----- | | @livekit/components-react | Patch | | @livekit/component-example-next | Patch | | @livekit/components-js-docs | Patch | | @livekit/component-docs-storybook | Patch | | @livekit/components-docs-gen | 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

github-actions[bot] commented 4 months ago

size-limit report 📦

Path Size
LiveKitRoom only 1.87 KB (0%)
LiveKitRoom with VideoConference 28.13 KB (0%)
All exports 33.24 KB (-0.13% 🔽)