Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Ocupe
Copy link
Contributor

@Ocupe Ocupe commented Dec 12, 2023

This pull request adds a new prop called onUserInitiatedChange to the TrackToggle component. This prop is a function that is only called if the button state change was triggered by a user interaction like a click.
The existing onChange callback, on the other hand, is called many times even when there is no user interaction, for example, when a user enters the room or leaves.

@changeset-bot
Copy link

changeset-bot bot commented Dec 12, 2023

🦋 Changeset detected

Latest commit: 80f5ae7

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 Minor
@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

@Ocupe Ocupe requested a review from lukasIO December 12, 2023 11:31
@Ocupe Ocupe changed the title Add onUserInitiatedChange prop to TrackToggle component Add onUserInitiatedChange prop to TrackToggle component Dec 12, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Dec 12, 2023

size-limit report 📦

Path Size
LiveKitRoom only 1.83 KB (0%)
LiveKitRoom with VideoConference 27.04 KB (+0.04% 🔺)
All exports 31.89 KB (+0.07% 🔺)

@lukasIO lukasIO changed the title Add onUserInitiatedChange prop to TrackToggle component Add an isUserInitiated argument to the onChange callback on the TrackToggle component. Dec 12, 2023
@Ocupe Ocupe merged commit 3c6564f into main Dec 12, 2023
@Ocupe Ocupe deleted the fix/incorrect-device-status-persists branch December 12, 2023 18:42
@github-actions github-actions bot mentioned this pull request Dec 12, 2023
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.

3 participants