AgoraIO-Extensions / AgoraIO-Extensions/agora-rtc-react

Re-render causes disconnect

Open
#210 3 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
41
Forks
14
PR merge metrics
No merged PRs in 30d

Description

### What kind of problem do you need help?

When I have 2 components (Like in this example: https://www.agora.io/en/blog/agora-react-sdk-build-a-video-conferencing-app-in-minutes/):
1. Parent holding agora client
2. Child using agora client to do a video call

When the parent re-renders, the connection state of the agora client is reset to `DISCONNECTED` and the user gets disconnected.

What can I do to solve this issue?

Thanks for your help :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.