Skip to content

fix(react): refresh session screen share state - #1447

Open
fatihcvs wants to merge 1 commit into
livekit:mainfrom
fatihcvs:fix/session-screen-share-state
Open

fatihcvs wants to merge 1 commit into
livekit:mainfrom
fatihcvs:fix/session-screen-share-state

Conversation

@fatihcvs

Copy link
Copy Markdown

When a connected session starts or stops screen sharing without changing its camera, microphone, or connection state, session.local.screenShareTrack stays stale. Add localScreenShare to the session-state memo dependencies.

The regression tests publish and unpublish a screen-share publication on a real SDK Room, with connection preparation mocked. Both cases fail before the fix and pass afterward. Includes a patch changeset.

Validated locally with Node 24.13.0 on Windows:

  • pnpm build:react (styles, core, React)
  • React/core/styles tests: 120 passing
  • React lint (existing warnings), pnpm format:check
  • React api-check

Developed with Codex assistance.

@changeset-bot

changeset-bot Bot commented Sep 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3379db1

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-react Patch
@livekit/agents-ui 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

@vercel

vercel Bot commented Sep 19, 2026

Copy link
Copy Markdown

@fatihcvs is attempting to deploy a commit to the LiveKit Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant

CLAassistant commented Sep 19, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants