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

Skip to content

Conversation

@lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Apr 7, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Apr 7, 2025

🦋 Changeset detected

Latest commit: 9c12fe9

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

This PR includes changesets to release 6 packages
Name Type
@livekit/components-core Patch
@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

@lukasIO lukasIO requested a review from Ocupe April 7, 2025 07:53
@github-actions
Copy link
Contributor

github-actions bot commented Apr 7, 2025

size-limit report 📦

Path Size
LiveKitRoom only 5.98 KB (0%)
LiveKitRoom with VideoConference 30.39 KB (0%)
All exports 37.61 KB (0%)

Copy link
Contributor

@Ocupe Ocupe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we should remove the resize event listener.

React.useEffect(() => {
document.addEventListener<'click'>('click', handleClickOutside);
window.addEventListener<'resize'>('resize', () => setUpdateRequired(true));
// window.addEventListener<'resize'>('resize', () => setUpdateRequired(true));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intentional or should it be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the idea is that the responsibility for this is being shifted to the autoUpdate helper of the floating ui lib.
this includes screen resizing and a bunch of other things, see https://floating-ui.com/docs/autoupdate

return () => {
document.removeEventListener<'click'>('click', handleClickOutside);
window.removeEventListener<'resize'>('resize', () => setUpdateRequired(true));
// window.removeEventListener<'resize'>('resize', () => setUpdateRequired(true));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@lukasIO lukasIO merged commit 15b8bc6 into main Apr 7, 2025
5 checks passed
@lukasIO lukasIO deleted the lukas/improve-auto-placement branch April 7, 2025 14:02
@github-actions github-actions bot mentioned this pull request Apr 4, 2025
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