Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the bug that speaker option flickering when camera on/off #5119

Merged
merged 4 commits into from
Sep 9, 2024

Conversation

PorterNan
Copy link
Contributor

What

Fix for bug: https://skype.visualstudio.com/SPOOL/_workitems/edit/3830093

The reason is the same as the one fixed by @edwardlee-msft, a new react component will create a new dom subtree which will attach a new dom element each time of re-render - either use "useMemo" or use none React component style to avoid this one.
#4936

Before:
Camera-on-off-before

After:
Camera-on-off

Why

How Tested

Process & policy checklist

  • I have updated the project documentation to reflect my changes if necessary.
  • I have read the CONTRIBUTING documentation.

Is this a breaking change?

  • This change causes current functionality to break.

Copy link
Contributor

github-actions bot commented Sep 4, 2024

Copy link
Contributor

github-actions bot commented Sep 4, 2024

Calling bundle size is not changed.

  • Current size: 8139365
  • Base size: 8139365
  • Diff size: 0

Copy link
Contributor

github-actions bot commented Sep 4, 2024

Chat bundle size is not changed.

  • Current size: 1758581
  • Base size: 1758581
  • Diff size: 0

Copy link
Contributor

github-actions bot commented Sep 4, 2024

CallWithChat bundle size is not changed.

  • Current size: 8139379
  • Base size: 8139379
  • Diff size: 0

Copy link
Contributor

github-actions bot commented Sep 4, 2024

Copy link
Contributor

github-actions bot commented Sep 4, 2024

@azure/communication-react jest test coverage for stable.

Lines Statements Functions Branches
Base 26575 / 42625
62.34%
26575 / 42625
62.34%
725 / 1317
55.04%
2105 / 3370
62.46%
Current 26577 / 42625
62.35%
26577 / 42625
62.35%
725 / 1317
55.04%
2119 / 3376
62.76%
Diff 2 / 0
0.01%
2 / 0
0.01%
0 / 0
0%
14 / 6
0.3%

Copy link
Contributor

github-actions bot commented Sep 4, 2024

@azure/communication-react jest test coverage for beta.

Lines Statements Functions Branches
Base 54049 / 88372
61.16%
54049 / 88372
61.16%
1077 / 2466
43.67%
3190 / 5248
60.78%
Current 54060 / 88372
61.17%
54060 / 88372
61.17%
1077 / 2466
43.67%
3171 / 5236
60.56%
Diff 11 / 0
0.01%
11 / 0
0.01%
0 / 0
0%
-19 / -12
-0.22%

Copy link
Contributor

github-actions bot commented Sep 4, 2024

Copy link
Contributor

github-actions bot commented Sep 4, 2024

Copy link
Contributor

github-actions bot commented Sep 5, 2024

Copy link
Contributor

github-actions bot commented Sep 5, 2024

@edwardlee-msft
Copy link
Contributor

nice good catch! I wonder where we do something similar. We probably have done this quite often

@PorterNan PorterNan enabled auto-merge (squash) September 9, 2024 22:38
Copy link
Contributor

github-actions bot commented Sep 9, 2024

Copy link
Contributor

github-actions bot commented Sep 9, 2024

@PorterNan PorterNan merged commit 3416ad1 into main Sep 9, 2024
42 checks passed
@PorterNan PorterNan deleted the jinan/fix-speaker-flickering branch September 9, 2024 22:49
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