Skip to content

Fix whole composite rerender#1820

Merged
PorterNan merged 8 commits intomainfrom
jinan/fix-whole-composite-rerender
Apr 26, 2022
Merged

Fix whole composite rerender#1820
PorterNan merged 8 commits intomainfrom
jinan/fix-whole-composite-rerender

Conversation

@PorterNan
Copy link
Copy Markdown
Contributor

@PorterNan PorterNan commented Apr 21, 2022

What

Fix whole composite re-render when the callId gets changed

The callId change event will happen first in stateful client then in adapter, then it generates a small gap that with 2 conflict values in stateful client and adapter, which will make call object totally undefined during this gap.

In this PR we try to sync call.id directly from sdk original call object when there is a state change, which ensure adapter can always find the right call id value.

The diagram to explain why callId gets out of sync(before the fix):
image

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.

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@prprabhu-ms prprabhu-ms self-assigned this Apr 21, 2022
@prprabhu-ms
Copy link
Copy Markdown
Contributor

Please add a lot of context in the PR description. This is a very hard bug to understand and I'm sure I'll come digging git history to this PR 6 months from today :)

I would even soft-suggest leaving a reference to the PR in the comment in the code.

@prprabhu-ms
Copy link
Copy Markdown
Contributor

Hey, any blockers for this PR?

@github-actions
Copy link
Copy Markdown
Contributor

@PorterNan
Copy link
Copy Markdown
Contributor Author

Hey, any blockers for this PR?

Just updated the PR, it's good to go now :D

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@PorterNan PorterNan merged commit 5cf76e2 into main Apr 26, 2022
@PorterNan PorterNan deleted the jinan/fix-whole-composite-rerender branch April 26, 2022 07:04
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